You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API Error: max_tokens and max_completion_tokens cannot be set at the same time (火山引擎/DeepSeek API) #288
在使用火山引擎的 DeepSeek API 进行对话时,系统在执行摘要(summarization)功能时报错:
failed to create chat completion: error, status code: 400, status: 400 Bad Request,
message: The parameter `max_tokens` specified in the request are not valid:
max_tokens and max_completion_tokens cannot be set at the same time.
{"level":"warn","timestamp":"2026-08-28T21:44:29.564+0800","caller":"openai/summarization_diag.go:57",
"msg":"eino summarization: API request rejected","status":400,
"request_id":"021787924669719fa871229fec4115dc08043e38393b8b5e20ec7",
"response_bytes":292,
"raw_body":"{\"error\":{\"code\":\"InvalidParameter\",\"message\":\"The parameter `max_tokens` specified in the request are not valid: max_tokens and max_completion_tokens cannot be set at the same time. Requestid: 021787924669719fa871229fec4115dc08043e38393b8b5e20ec7\",\"param\":\"max_tokens\",\"type\":\"BadRequest\"}}"}
Activity