From d49bf346e0dc6a6360e7c70fb93ec42525735908 Mon Sep 17 00:00:00 2001 From: Rohan Thacker Date: Tue, 28 Jan 2025 04:49:38 +0530 Subject: [PATCH] Updated docs for _azure_ai_client.py (#5199) Update a minor typo and updated the `response_format` documentation to the new value Co-authored-by: Eric Zhu --- .../src/autogen_ext/models/azure/_azure_ai_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/models/azure/_azure_ai_client.py b/python/packages/autogen-ext/src/autogen_ext/models/azure/_azure_ai_client.py index d10f678dc..bb0af506b 100644 --- a/python/packages/autogen-ext/src/autogen_ext/models/azure/_azure_ai_client.py +++ b/python/packages/autogen-ext/src/autogen_ext/models/azure/_azure_ai_client.py @@ -174,7 +174,7 @@ class AzureAIChatCompletionClient(ChatCompletionClient): Args: endpoint (str): The endpoint to use. **Required.** - credentials (union, AzureKeyCredential, AsyncTokenCredential): The credentials to use. **Required** + credential (union, AzureKeyCredential, AsyncTokenCredential): The credentials to use. **Required** model_info (ModelInfo): The model family and capabilities of the model. **Required.** model (str): The name of the model. **Required if model is hosted on GitHub Models.** frequency_penalty: (optional,float) @@ -182,7 +182,7 @@ class AzureAIChatCompletionClient(ChatCompletionClient): temperature: (optional,float) top_p: (optional,float) max_tokens: (optional,int) - response_format: (optional,ChatCompletionsResponseFormat) + response_format: (optional, literal["text", "json_object"]) stop: (optional,List[str]) tools: (optional,List[ChatCompletionsToolDefinition]) tool_choice: (optional,Union[str, ChatCompletionsToolChoicePreset, ChatCompletionsNamedToolChoice]])