A programming framework for agentic AI
fix: extra args not work to disable thinking (#7006)
liuyunrui1230df6be1fc1a8
diff --git a/python/packages/autogen-ext/src/autogen_ext/models/openai/_openai_client.py b/python/packages/autogen-ext/src/autogen_ext/models/openai/_openai_client.pyindex 02b8d911a..359ddfe6c 100644--- a/python/packages/autogen-ext/src/autogen_ext/models/openai/_openai_client.py+++ b/python/packages/autogen-ext/src/autogen_ext/models/openai/_openai_client.py@@ -94,7 +94,7 @@ openai_init_kwargs = set(inspect.getfullargspec(AsyncOpenAI.__init__).kwonlyargsaopenai_init_kwargs = set(inspect.getfullargspec(AsyncAzureOpenAI.__init__).kwonlyargs)create_kwargs = set(completion_create_params.CompletionCreateParamsBase.__annotations__.keys()) | set(- ("timeout", "stream")+ ("timeout", "stream", "extra_body"))# Only single choice alloweddisallowed_create_args = set(["stream", "messages", "function_call", "functions", "n"])