Skip to content

A programming framework for agentic AI

Update Azure OpenAI API to 2024-02-15-preview (#1692)

Mats Finsås7ceee5dadce8
diff --git a/OAI_CONFIG_LIST_sample b/OAI_CONFIG_LIST_sample
index 9789627af..ef027f815 100644
--- a/OAI_CONFIG_LIST_sample
+++ b/OAI_CONFIG_LIST_sample
@@ -12,13 +12,13 @@
"api_key": "<your Azure OpenAI API key here>",
"base_url": "<your Azure OpenAI API base here>",
"api_type": "azure",
- "api_version": "2023-07-01-preview"
+ "api_version": "2024-02-15-preview"
},
{
"model": "<your Azure OpenAI deployment name>",
"api_key": "<your Azure OpenAI API key here>",
"base_url": "<your Azure OpenAI API base here>",
"api_type": "azure",
- "api_version": "2023-07-01-preview"
+ "api_version": "2024-02-15-preview"
}
]
diff --git a/autogen/oai/client.py b/autogen/oai/client.py
index ccde5f0a6..59e598153 100644
--- a/autogen/oai/client.py
+++ b/autogen/oai/client.py
@@ -339,7 +339,7 @@ class OpenAIWrapper:
"api_key": os.environ.get("AZURE_OPENAI_API_KEY"),
"api_type": "azure",
"base_url": os.environ.get("AZURE_OPENAI_API_BASE"),
- "api_version": "2023-03-15-preview",
+ "api_version": "2024-02-15-preview",
},
{
"model": "gpt-3.5-turbo",
@@ -534,7 +534,7 @@ class OpenAIWrapper:
```
- allow_format_str_template (bool | None): Whether to allow format string template in the config. Default to false.
- - api_version (str | None): The api version. Default to None. E.g., "2023-08-01-preview".
+ - api_version (str | None): The api version. Default to None. E.g., "2024-02-15-preview".
Raises:
- RuntimeError: If all declared custom model clients are not registered
- APIError: If any model client create call raises an APIError
diff --git a/autogen/oai/completion.py b/autogen/oai/completion.py
index 427de9d94..7029e6d10 100644
--- a/autogen/oai/completion.py
+++ b/autogen/oai/completion.py
@@ -739,7 +739,7 @@ class Completion(openai_Completion):
"api_key": os.environ.get("AZURE_OPENAI_API_KEY"),
"api_type": "azure",
"base_url": os.environ.get("AZURE_OPENAI_API_BASE"),
- "api_version": "2023-03-15-preview",
+ "api_version": "2024-02-15-preview",
},
{
"model": "gpt-3.5-turbo",
diff --git a/autogen/oai/openai_utils.py b/autogen/oai/openai_utils.py
index 74bf81a40..70ae22812 100644
--- a/autogen/oai/openai_utils.py
+++ b/autogen/oai/openai_utils.py
@@ -19,7 +19,7 @@ except ImportError:
Assistant = object
NON_CACHE_KEY = ["api_key", "base_url", "api_type", "api_version"]
-DEFAULT_AZURE_API_VERSION = "2023-12-01-preview"
+DEFAULT_AZURE_API_VERSION = "2024-02-15-preview"
OAI_PRICE1K = {
"text-ada-001": 0.0004,
"text-babbage-001": 0.0005,
@@ -112,7 +112,7 @@ def get_config_list(
# Optionally, define the API type and version if they are common for all keys
api_type = 'azure'
- api_version = '2023-12-01-preview'
+ api_version = '2024-02-15-preview'
# Call the get_config_list function to get a list of configuration dictionaries
config_list = get_config_list(api_keys, base_urls, api_type, api_version)
diff --git a/notebook/agentchat_MathChat.ipynb b/notebook/agentchat_MathChat.ipynb
index 8ea4c1f1c..bfc44fcd1 100644
--- a/notebook/agentchat_MathChat.ipynb
+++ b/notebook/agentchat_MathChat.ipynb
@@ -96,14 +96,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_agentoptimizer.ipynb b/notebook/agentchat_agentoptimizer.ipynb
index 78ea14fe9..a619ce551 100644
--- a/notebook/agentchat_agentoptimizer.ipynb
+++ b/notebook/agentchat_agentoptimizer.ipynb
@@ -704,7 +704,7 @@
"EPOCH = 10\n",
"OAI_config = {\n",
" \"AZURE_OPENAI_API_KEY\": \"gpt-4-1106-preview\",\n",
- " \"api_version\": \"2023-12-01-preview\",\n",
+ " \"api_version\": \"2024-02-15-preview\",\n",
" \"azure_endpoint\": \"your_azure_endpoint\",\n",
" \"model\": \"your_model\",\n",
"}\n",
diff --git a/notebook/agentchat_chess.ipynb b/notebook/agentchat_chess.ipynb
index acc1b978f..21a3c29fb 100644
--- a/notebook/agentchat_chess.ipynb
+++ b/notebook/agentchat_chess.ipynb
@@ -103,14 +103,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_compression.ipynb b/notebook/agentchat_compression.ipynb
index 688c2d0e9..3ba57a728 100644
--- a/notebook/agentchat_compression.ipynb
+++ b/notebook/agentchat_compression.ipynb
@@ -115,14 +115,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_cost_token_tracking.ipynb b/notebook/agentchat_cost_token_tracking.ipynb
index 0116a0bb6..05655b452 100644
--- a/notebook/agentchat_cost_token_tracking.ipynb
+++ b/notebook/agentchat_cost_token_tracking.ipynb
@@ -96,7 +96,7 @@
" \"model\": \"gpt-35-turbo-0613\", # 0613 or newer is needed to use functions\n",
" \"base_url\": \"<your Azure OpenAI API base>\", \n",
" \"api_type\": \"azure\", \n",
- " \"api_version\": \"2023-08-01-preview\", # 2023-07-01-preview or newer is needed to use functions\n",
+ " \"api_version\": \"2024-02-15-preview\", # 2023-07-01-preview or newer is needed to use functions\n",
" \"api_key\": \"<your Azure OpenAI API key>\"\n",
" }\n",
"]\n",
diff --git a/notebook/agentchat_custom_model.ipynb b/notebook/agentchat_custom_model.ipynb
index a35753ad8..c29d38089 100644
--- a/notebook/agentchat_custom_model.ipynb
+++ b/notebook/agentchat_custom_model.ipynb
@@ -241,14 +241,14 @@
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-08-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" },\n",
" {\n",
" \"model\": \"gpt-4-32k\",\n",
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-08-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" }\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_dalle_and_gpt4v.ipynb b/notebook/agentchat_dalle_and_gpt4v.ipynb
index b63ae2ee6..0426cc6fd 100644
--- a/notebook/agentchat_dalle_and_gpt4v.ipynb
+++ b/notebook/agentchat_dalle_and_gpt4v.ipynb
@@ -93,7 +93,7 @@
" {\n",
" 'model': 'dalle',\n",
" 'api_key': 'Your API Key here',\n",
- " 'api_version': '2023-06-01-preview'\n",
+ " 'api_version': '2024-02-15-preview'\n",
" }\n",
"]\n",
" ```"
diff --git a/notebook/agentchat_function_call.ipynb b/notebook/agentchat_function_call.ipynb
index 888206401..bb0be8f25 100644
--- a/notebook/agentchat_function_call.ipynb
+++ b/notebook/agentchat_function_call.ipynb
@@ -91,14 +91,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo-16k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_function_call_currency_calculator.ipynb b/notebook/agentchat_function_call_currency_calculator.ipynb
index d498e020e..25f698352 100644
--- a/notebook/agentchat_function_call_currency_calculator.ipynb
+++ b/notebook/agentchat_function_call_currency_calculator.ipynb
@@ -94,14 +94,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo-16k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_graph_modelling_language_using_select_speaker.ipynb b/notebook/agentchat_graph_modelling_language_using_select_speaker.ipynb
index a6d3603e1..9a706a617 100644
--- a/notebook/agentchat_graph_modelling_language_using_select_speaker.ipynb
+++ b/notebook/agentchat_graph_modelling_language_using_select_speaker.ipynb
@@ -293,14 +293,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_groupchat_research.ipynb b/notebook/agentchat_groupchat_research.ipynb
index 891883765..8b569f8f5 100644
--- a/notebook/agentchat_groupchat_research.ipynb
+++ b/notebook/agentchat_groupchat_research.ipynb
@@ -81,14 +81,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k-0314',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_groupchat_vis.ipynb b/notebook/agentchat_groupchat_vis.ipynb
index 886c93c18..d46741d15 100644
--- a/notebook/agentchat_groupchat_vis.ipynb
+++ b/notebook/agentchat_groupchat_vis.ipynb
@@ -98,14 +98,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_human_feedback.ipynb b/notebook/agentchat_human_feedback.ipynb
index be40667e7..41fbed5cd 100644
--- a/notebook/agentchat_human_feedback.ipynb
+++ b/notebook/agentchat_human_feedback.ipynb
@@ -90,14 +90,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo-16k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_langchain.ipynb b/notebook/agentchat_langchain.ipynb
index aa77b722e..12ffafff2 100644
--- a/notebook/agentchat_langchain.ipynb
+++ b/notebook/agentchat_langchain.ipynb
@@ -127,14 +127,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo-16k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_microsoft_fabric.ipynb b/notebook/agentchat_microsoft_fabric.ipynb
index f4de95f69..55793e0ab 100644
--- a/notebook/agentchat_microsoft_fabric.ipynb
+++ b/notebook/agentchat_microsoft_fabric.ipynb
@@ -578,7 +578,7 @@
" \"api_key\": access_token,\n",
" \"base_url\": prebuilt_AI_base_url,\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-08-01-preview\",\n",
+ " \"api_version\": \"2024-02-15-preview\",\n",
" },\n",
"]"
]
diff --git a/notebook/agentchat_planning.ipynb b/notebook/agentchat_planning.ipynb
index 6a43cc249..508792f01 100644
--- a/notebook/agentchat_planning.ipynb
+++ b/notebook/agentchat_planning.ipynb
@@ -93,14 +93,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" }, # Azure OpenAI API endpoint for gpt-4\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" }, # Azure OpenAI API endpoint for gpt-4-32k\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_qdrant_RetrieveChat.ipynb b/notebook/agentchat_qdrant_RetrieveChat.ipynb
index 99aabdf08..e1152e750 100644
--- a/notebook/agentchat_qdrant_RetrieveChat.ipynb
+++ b/notebook/agentchat_qdrant_RetrieveChat.ipynb
@@ -267,14 +267,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_stream.ipynb b/notebook/agentchat_stream.ipynb
index 3e963611f..7f671bc01 100644
--- a/notebook/agentchat_stream.ipynb
+++ b/notebook/agentchat_stream.ipynb
@@ -90,14 +90,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-3.5-turbo-16k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_teachability.ipynb b/notebook/agentchat_teachability.ipynb
index 564fd9e78..0f9550bd7 100644
--- a/notebook/agentchat_teachability.ipynb
+++ b/notebook/agentchat_teachability.ipynb
@@ -103,14 +103,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_teachable_oai_assistants.ipynb b/notebook/agentchat_teachable_oai_assistants.ipynb
index 8647b4a41..9bd69c9d5 100644
--- a/notebook/agentchat_teachable_oai_assistants.ipynb
+++ b/notebook/agentchat_teachable_oai_assistants.ipynb
@@ -112,14 +112,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_teaching.ipynb b/notebook/agentchat_teaching.ipynb
index 6d7d34d15..45eab8b5c 100644
--- a/notebook/agentchat_teaching.ipynb
+++ b/notebook/agentchat_teaching.ipynb
@@ -60,14 +60,14 @@
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-06-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" },\n",
" {\n",
" \"model\": \"gpt-4-32k\",\n",
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-06-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" }\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_two_users.ipynb b/notebook/agentchat_two_users.ipynb
index 53aba7985..a7ea0f72f 100644
--- a/notebook/agentchat_two_users.ipynb
+++ b/notebook/agentchat_two_users.ipynb
@@ -70,14 +70,14 @@
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-08-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" },\n",
" {\n",
" \"model\": \"gpt-4-32k\",\n",
" \"api_key\": \"<your Azure OpenAI API key here>\",\n",
" \"base_url\": \"<your Azure OpenAI API base here>\",\n",
" \"api_type\": \"azure\",\n",
- " \"api_version\": \"2023-08-01-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" }\n",
"]\n",
"```\n",
diff --git a/notebook/agentchat_web_info.ipynb b/notebook/agentchat_web_info.ipynb
index d10fa1ab8..31ac248ec 100644
--- a/notebook/agentchat_web_info.ipynb
+++ b/notebook/agentchat_web_info.ipynb
@@ -104,14 +104,14 @@
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
" {\n",
" 'model': 'gpt-4-32k-0314',\n",
" 'api_key': '<your Azure OpenAI API key here>',\n",
" 'base_url': '<your Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-08-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" },\n",
"]\n",
"```\n",
diff --git a/notebook/oai_chatgpt_gpt4.ipynb b/notebook/oai_chatgpt_gpt4.ipynb
index 23d68ed84..34b5e5357 100644
--- a/notebook/oai_chatgpt_gpt4.ipynb
+++ b/notebook/oai_chatgpt_gpt4.ipynb
@@ -131,13 +131,13 @@
" 'api_key': '<your first Azure OpenAI API key here>',\n",
" 'base_url': '<your first Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" }, # only if at least one Azure OpenAI API key is found\n",
" {\n",
" 'api_key': '<your second Azure OpenAI API key here>',\n",
" 'base_url': '<your second Azure OpenAI API base here>',\n",
" 'api_type': 'azure',\n",
- " 'api_version': '2023-06-01-preview',\n",
+ " 'api_version': '2024-02-15-preview',\n",
" }, # only if the second Azure OpenAI API key is found\n",
"]\n",
"```\n",
diff --git a/notebook/oai_completion.ipynb b/notebook/oai_completion.ipynb
index c6eb95622..514ba6a4e 100644
--- a/notebook/oai_completion.ipynb
+++ b/notebook/oai_completion.ipynb
@@ -97,13 +97,13 @@
"# 'api_key': '<your first Azure OpenAI API key here>',\n",
"# 'base_url': '<your first Azure OpenAI API base here>',\n",
"# 'api_type': 'azure',\n",
- "# 'api_version': '2023-03-15-preview',\n",
+ "# 'api_version': '2024-02-15-preview',\n",
"# }, # Azure OpenAI API endpoint for gpt-4\n",
"# {\n",
"# 'api_key': '<your second Azure OpenAI API key here>',\n",
"# 'base_url': '<your second Azure OpenAI API base here>',\n",
"# 'api_type': 'azure',\n",
- "# 'api_version': '2023-03-15-preview',\n",
+ "# 'api_version': '2024-02-15-preview',\n",
"# }, # another Azure OpenAI API endpoint for gpt-4\n",
"# ]\n",
"\n",
@@ -131,14 +131,14 @@
"# 'api_key': '<your first Azure OpenAI API key here>',\n",
"# 'base_url': '<your first Azure OpenAI API base here>',\n",
"# 'api_type': 'azure',\n",
- "# 'api_version': '2023-06-01-preview',\n",
+ "# 'api_version': '2024-02-15-preview',\n",
"# }, # Azure OpenAI API endpoint for gpt-3.5-turbo\n",
"# {\n",
"# 'model': 'gpt-35-turbo-v0301',\n",
"# 'api_key': '<your second Azure OpenAI API key here>',\n",
"# 'base_url': '<your second Azure OpenAI API base here>',\n",
"# 'api_type': 'azure',\n",
- "# 'api_version': '2023-06-01-preview',\n",
+ "# 'api_version': '2024-02-15-preview',\n",
"# }, # another Azure OpenAI API endpoint for gpt-3.5-turbo with deployment name gpt-35-turbo-v0301\n",
"# ]"
]
diff --git a/test/oai/test_utils.py b/test/oai/test_utils.py
index e10781a9c..0d0bb2c79 100644
--- a/test/oai/test_utils.py
+++ b/test/oai/test_utils.py
@@ -54,7 +54,7 @@ JSON_SAMPLE = """
"api_key": "111113fc7e8a46419bfac511bb301111",
"base_url": "https://1111.openai.azure.com",
"api_type": "azure",
- "api_version": "2023-07-01-preview"
+ "api_version": "2024-02-15-preview"
},
{
"model": "gpt",
diff --git a/test/test_logging.py b/test/test_logging.py
index 694b9c1d5..083a4008d 100644
--- a/test/test_logging.py
+++ b/test/test_logging.py
@@ -173,7 +173,7 @@ def test_log_oai_client(db_connection):
openai_config = {
"api_key": "some_key",
- "api_version": "2023-12-01-preview",
+ "api_version": "2024-02-15-preview",
"azure_deployment": "gpt-4",
"azure_endpoint": "https://foobar.openai.azure.com/",
}
diff --git a/website/blog/2023-12-01-AutoGenStudio/index.mdx b/website/blog/2023-12-01-AutoGenStudio/index.mdx
index b6191eae6..6f758559c 100644
--- a/website/blog/2023-12-01-AutoGenStudio/index.mdx
+++ b/website/blog/2023-12-01-AutoGenStudio/index.mdx
@@ -61,7 +61,7 @@ llm_config = LLMConfig(
"api_key": "<azure_api_key>",
"base_url": "<azure api base url>",
"api_type": "azure",
- "api_version": "2023-06-01-preview"
+ "api_version": "2024-02-15-preview"
}],
temperature=0,
)
diff --git a/website/docs/Use-Cases/enhanced_inference.md b/website/docs/Use-Cases/enhanced_inference.md
index f8cb40fc7..ad94b9bc8 100644
--- a/website/docs/Use-Cases/enhanced_inference.md
+++ b/website/docs/Use-Cases/enhanced_inference.md
@@ -250,7 +250,7 @@ client = OpenAIWrapper(
"api_key": os.environ.get("AZURE_OPENAI_API_KEY"),
"api_type": "azure",
"base_url": os.environ.get("AZURE_OPENAI_API_BASE"),
- "api_version": "2023-08-01-preview",
+ "api_version": "2024-02-15-preview",
},
{
"model": "gpt-3.5-turbo",
diff --git a/website/docs/llm_configuration.ipynb b/website/docs/llm_configuration.ipynb
index d76b2574f..5691f1d79 100644
--- a/website/docs/llm_configuration.ipynb
+++ b/website/docs/llm_configuration.ipynb
@@ -96,7 +96,7 @@
" \"api_type\": \"azure\",\n",
" \"api_key\": os.environ['AZURE_OPENAI_API_KEY'],\n",
" \"base_url\": \"https://ENDPOINT.openai.azure.com/\",\n",
- " \"api_version\": \"2023-03-15-preview\"\n",
+ " \"api_version\": \"2024-02-15-preview\"\n",
" }\n",
" ]\n",
" ```\n",
@@ -293,7 +293,7 @@
" \"api_key\": os.environ.get(\"AZURE_OPENAI_API_KEY\"),\n",
" \"api_type\": \"azure\",\n",
" \"base_url\": os.environ.get(\"AZURE_OPENAI_API_BASE\"),\n",
- " \"api_version\": \"2023-12-01-preview\",\n",
+ " \"api_version\": \"2024-02-15-preview\",\n",
" },\n",
" {\n",
" \"model\": \"llama-7B\",\n",