fix(providers): add max_completion_tokens for openai o1 compatibility

This commit is contained in:
flobo3 authored and Xubin Ren committed 2026-03-25 16:57:02 +08:00
1 parent b5302b6f3d
commit ef10df9acb
1 file changed
+1
@@ -230,6 +230,7 @@ class OpenAICompatProvider(LLMProvider):
"model": model_name,
"messages": self._sanitize_messages(self._sanitize_empty_content(messages)),
"max_tokens": max(1, max_tokens),
"max_completion_tokens": max(1, max_tokens),
"temperature": temperature,
}