diff --git a/modules/programming/module_programming_llm/module_programming_llm/helpers/models/openai.py b/modules/programming/module_programming_llm/module_programming_llm/helpers/models/openai.py index b9b05635..cb9d889c 100644 --- a/modules/programming/module_programming_llm/module_programming_llm/helpers/models/openai.py +++ b/modules/programming/module_programming_llm/module_programming_llm/helpers/models/openai.py @@ -16,7 +16,7 @@ AZURE_OPENAI_PREFIX = "azure_openai_" openai_available = bool(os.environ.get("OPENAI_API_KEY")) azure_openai_available = bool(os.environ.get("AZURE_OPENAI_API_KEY")) -api_version = bool(os.environ.get("OPENAI_API_VERSION")) +api_version = os.environ.get("OPENAI_API_VERSION") available_models: Dict[str, BaseLanguageModel] = {}