-
Notifications
You must be signed in to change notification settings - Fork 2
add in new context parameter guide #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| ### Size limit | ||
|
|
||
| There is no size limit for the `context` parameter itself, but the request body size limit of 128 KiB applies to all text translation requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For classic models, the maximum context taken into account was 5 sentences, but I do not know how it works with next-gen. Is it truly unlimited except for request body size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an expert but we don't impose any size limitations on the context field for users (beyond the 128KiB request size limit). When translating I believe that for both model types we'll just use the last 5 sentences but I don't believe we expose that limitation to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like we should leave this as-is then?
docs/learning-how-tos/examples-and-guides/how-to-use-context-parameter.mdx
Show resolved
Hide resolved
|
|
||
| ### Size limit | ||
|
|
||
| There is no size limit for the `context` parameter itself, but the request body size limit of 128 KiB applies to all text translation requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an expert but we don't impose any size limitations on the context field for users (beyond the 128KiB request size limit). When translating I believe that for both model types we'll just use the last 5 sentences but I don't believe we expose that limitation to the user.
Co-authored-by: Brianna Delgado <[email protected]>
The context parameter is often misunderstood. We have 2 separate guides to it right now, neither of which fully describe its intended use. Let's unify those and clean them up!