Spaces:
Sleeping
Sleeping
soyleyicicem
commited on
Update embedding_loader.py
Browse files- embedding_loader.py +2 -2
embedding_loader.py
CHANGED
@@ -11,8 +11,8 @@ def import_embedding():
|
|
11 |
|
12 |
AZURE_OPENAI_KEY = os.getenv('azure_api')
|
13 |
os.environ['AZURE_OPENAI_KEY'] = AZURE_OPENAI_KEY
|
14 |
-
openai.api_version = "
|
15 |
-
openai.azure_endpoint = os.getenv('
|
16 |
embedding_name = "embedding3large" # deployment name on Azure OPENAI Studio
|
17 |
myEmbeddingModel = AzureOpenAIEmbeddings(azure_deployment=embedding_name,
|
18 |
azure_endpoint = openai.azure_endpoint,
|
|
|
11 |
|
12 |
AZURE_OPENAI_KEY = os.getenv('azure_api')
|
13 |
os.environ['AZURE_OPENAI_KEY'] = AZURE_OPENAI_KEY
|
14 |
+
openai.api_version = "2023-05-15" # change it with your own version
|
15 |
+
openai.azure_endpoint = os.getenv('azure_endpoint_embed')
|
16 |
embedding_name = "embedding3large" # deployment name on Azure OPENAI Studio
|
17 |
myEmbeddingModel = AzureOpenAIEmbeddings(azure_deployment=embedding_name,
|
18 |
azure_endpoint = openai.azure_endpoint,
|