fix: extra args not work to disable thinking (#7006)

This commit is contained in:
liuyunrui123 2025-09-16 15:42:35 +08:00 committed by GitHub
parent 3107855044
commit 0df6be1fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,7 @@ openai_init_kwargs = set(inspect.getfullargspec(AsyncOpenAI.__init__).kwonlyargs
aopenai_init_kwargs = set(inspect.getfullargspec(AsyncAzureOpenAI.__init__).kwonlyargs) aopenai_init_kwargs = set(inspect.getfullargspec(AsyncAzureOpenAI.__init__).kwonlyargs)
create_kwargs = set(completion_create_params.CompletionCreateParamsBase.__annotations__.keys()) | set( create_kwargs = set(completion_create_params.CompletionCreateParamsBase.__annotations__.keys()) | set(
("timeout", "stream") ("timeout", "stream", "extra_body")
) )
# Only single choice allowed # Only single choice allowed
disallowed_create_args = set(["stream", "messages", "function_call", "functions", "n"]) disallowed_create_args = set(["stream", "messages", "function_call", "functions", "n"])