Skip to content

[Feature]建议提供更多的自定义选项,比如grok3的enable --allow-auto-truncate #2332

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

Open
ssbg2 opened this issue May 23, 2025 · 0 comments

Comments

@ssbg2
Copy link

ssbg2 commented May 23, 2025

问题描述
在使用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"
}
]

解决思路
可否提供一些自定义的选项,这样在程序没有更新的情况下也可以支持。
当然如果能增加这部分针对性的功能,那就更好了,谢谢!

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

No branches or pull requests

1 participant