From f672c65c7126101d07350bbc98dfee55a0cb08fd Mon Sep 17 00:00:00 2001 From: mingyi yang Date: Wed, 6 Mar 2024 20:55:52 +0000 Subject: [PATCH] Remove unused kwargs passed to requests sent through `AzureOpenAI` This commit is to remove unused kwargs that we include in the requests sent through `AzureOpenAI` class. This seems to fix this issue: https://github.com/stanfordnlp/dspy/issues/543 --- dsp/modules/azure_openai.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dsp/modules/azure_openai.py b/dsp/modules/azure_openai.py index c90f634e4f..d930bec6b5 100644 --- a/dsp/modules/azure_openai.py +++ b/dsp/modules/azure_openai.py @@ -107,9 +107,6 @@ def __init__( kwargs["model"] = model self.kwargs = { - "api_base": api_base, - "api_version": api_version, - "api_key": api_key, "temperature": 0.0, "max_tokens": 150, "top_p": 1,