soyleyicicem commited on
Commit
c2c7198
·
verified ·
1 Parent(s): a7d541f

Update embedding_loader.py

Browse files
Files changed (1) hide show
  1. 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 = "2024-02-15-preview" # change it with your own version
15
- openai.azure_endpoint = os.getenv('azure_endpoint')
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,