Skip to content

Commit

Permalink
docs: fix grammar in budget allocation description (#141)
Browse files Browse the repository at this point in the history
Fixes a grammatical error in the budget allocation documentation.

Before:
> properties which control budget allocation you mind find useful

After:
> properties which control budget allocation you might find useful
  • Loading branch information
atxtechbro authored Jan 7, 2025
1 parent dc6487b commit 3e0f57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class SimpleTextChunk extends PromptElement<{ text: string }, string> {
}
```

There are a few similar properties which control budget allocation you mind find useful for more advanced cases:
There are a few similar properties which control budget allocation you might find useful for more advanced cases:

- `flexReserve`: controls the number of tokens reserved from the container's budget _before_ this element gets rendered. For example, if you have a 100 token budget and the elements `<><Foo /><Bar flexGrow={1} flexReserve={30} /></>`, then `Foo` would receive a `PromptSizing.tokenBudget` of 70, and `Bar` would receive however many tokens of the 100 that `Foo` didn't use. This is only useful in conjunction with `flexGrow`.

Expand Down

0 comments on commit 3e0f57f

Please sign in to comment.