Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

llm_utils: revert changing `deployment_id` parameter to `engine`

Reinier van der Leer45f490e0ad2d
diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py
index 056cd0135e..821820ffab 100644
--- a/autogpt/llm_utils.py
+++ b/autogpt/llm_utils.py
@@ -83,7 +83,7 @@ def create_chat_completion(
try:
if CFG.use_azure:
response = openai.ChatCompletion.create(
- engine=CFG.get_azure_deployment_id_for_model(model),
+ deployment_id=CFG.get_azure_deployment_id_for_model(model),
model=model,
messages=messages,
temperature=temperature,