azure openai features and bugs solve - openai_version, docs (#1425)

This commit is contained in:
Pranav Puranik
2024-06-17 10:47:27 -05:00
committed by GitHub
parent dc0d8e0932
commit 4547d870af
6 changed files with 34 additions and 4 deletions

View File

@@ -193,8 +193,8 @@ import os
from embedchain import App
os.environ["OPENAI_API_TYPE"] = "azure"
os.environ["OPENAI_API_BASE"] = "https://xxx.openai.azure.com/"
os.environ["OPENAI_API_KEY"] = "xxx"
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://xxx.openai.azure.com/"
os.environ["AZURE_OPENAI_KEY"] = "xxx"
os.environ["OPENAI_API_VERSION"] = "xxx"
app = App.from_config(config_path="config.yaml")