We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
问题描述 在使用grok3的时候,经常会碰到超出最大上下文的问题,会报错:API Error: Error from xAI: AI_TypeValidationError: Type validation failed: Value: {"code":"Client specified an invalid argument","error":"Input length (131054 tokens) exceeds the maximum allowed length (131038 tokens). Use a shorter input or enable --allow-auto-truncate."}. Error message: [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "choices" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "string", "path": [ "error" ], "message": "Expected object, received string" } ], "name": "ZodError" } ], "path": [], "message": "Invalid input" } ]
解决思路 可否提供一些自定义的选项,这样在程序没有更新的情况下也可以支持。 当然如果能增加这部分针对性的功能,那就更好了,谢谢!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
在使用grok3的时候,经常会碰到超出最大上下文的问题,会报错:API Error: Error from xAI: AI_TypeValidationError: Type validation failed: Value: {"code":"Client specified an invalid argument","error":"Input length (131054 tokens) exceeds the maximum allowed length (131038 tokens). Use a shorter input or enable --allow-auto-truncate."}.
Error message: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_type",
"expected": "array",
"received": "undefined",
"path": [
"choices"
],
"message": "Required"
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_type",
"expected": "object",
"received": "string",
"path": [
"error"
],
"message": "Expected object, received string"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
解决思路
可否提供一些自定义的选项,这样在程序没有更新的情况下也可以支持。
当然如果能增加这部分针对性的功能,那就更好了,谢谢!
The text was updated successfully, but these errors were encountered: