-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
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.
| "group": "Guides", | ||
| "pages": [ | ||
| "docs/learning-how-tos/examples-and-guides/", | ||
| "docs/learning-how-tos/how-to-use-context-parameter", |
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.
The how-to-use-context-parameter file seems to be in a different directory than all of the other guide files where the others are in a examples-and-guides subdirectory. Do we want to align them?
| @@ -0,0 +1,291 @@ | |||
| --- | |||
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.
There's an overview page linking to all the guides that we should probably update to include this file https://github.com/DeepLcom/api-docs/blob/9ee4c54e2cf368d6e9b72b2247773d8cfea7adad/docs/learning-how-tos/examples-and-guides.mdx?plain=1
|
|
||
| ### 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.
No description provided.