Skip to content

Conversation

@shirgoldbird
Copy link
Member

No description provided.


### 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.
Copy link
Contributor

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?

Copy link
Member

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",
Copy link
Member

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 @@
---
Copy link
Member

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.
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve docs for context param

4 participants