韩宇 commited on
Commit
db47ff4
·
1 Parent(s): ef69607
configs/llms/gpt4o.yml CHANGED
@@ -9,7 +9,7 @@ name: AzureGPTLLM
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: json_object
 
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: json_object
configs/llms/json_res.yml CHANGED
@@ -8,7 +8,7 @@ name: AzureGPTLLM
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: json_object
 
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: json_object
configs/llms/text_encoder.yml CHANGED
@@ -1,4 +1,4 @@
1
  name: AzureTextEmbeddingV3
2
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1}
3
  api_key: ${env| custom_openai_key, openai_api_key}
4
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
 
1
  name: AzureTextEmbeddingV3
2
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1}
3
  api_key: ${env| custom_openai_key, openai_api_key}
4
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
configs/llms/text_res.yml CHANGED
@@ -8,7 +8,7 @@ name: AzureGPTLLM
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: text
 
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: text
configs/llms/text_res_stream.yml CHANGED
@@ -9,7 +9,7 @@ name: AzureGPTLLM
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: text
 
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: text
omagent_core/models/llms/azure_gpt.py CHANGED
@@ -27,7 +27,7 @@ class AzureGPTLLM(BaseLLM):
27
  model_id: str
28
  endpoint: str
29
  api_key: str
30
- api_version: str = "2024-02-15-preview"
31
  model_id: str = Field(
32
  default=os.getenv("MODEL_ID", "gpt-4o"), description="The model id of openai"
33
  )
 
27
  model_id: str
28
  endpoint: str
29
  api_key: str
30
+ api_version: str = "2024-02-01"
31
  model_id: str = Field(
32
  default=os.getenv("MODEL_ID", "gpt-4o"), description="The model id of openai"
33
  )
webpage_configs/llms/gpt4o.yml CHANGED
@@ -9,7 +9,7 @@ name: AzureGPTLLM
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: json_object
 
9
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
10
  api_key: ${env| custom_openai_key, openai_api_key}
11
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
12
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
13
  temperature: 0
14
  vision: true
15
  response_format: json_object
webpage_configs/llms/json_res.yml CHANGED
@@ -8,7 +8,7 @@ name: AzureGPTLLM
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: json_object
 
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: json_object
webpage_configs/llms/text_encoder.yml CHANGED
@@ -1,4 +1,4 @@
1
  name: AzureTextEmbeddingV3
2
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1}
3
  api_key: ${env| custom_openai_key, openai_api_key}
4
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
 
1
  name: AzureTextEmbeddingV3
2
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1}
3
  api_key: ${env| custom_openai_key, openai_api_key}
4
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
webpage_configs/llms/text_res.yml CHANGED
@@ -8,7 +8,7 @@ name: AzureGPTLLM
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: text
 
8
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
9
  api_key: ${env| custom_openai_key, openai_api_key}
10
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
11
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
12
  temperature: 0
13
  vision: true
14
  response_format: text
webpage_configs/llms/text_res_stream.yml CHANGED
@@ -10,7 +10,7 @@ name: AzureGPTLLM
10
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
11
  api_key: ${env| custom_openai_key, openai_api_key}
12
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
13
- api_version: ${env| custom_openai_api_version, 2024-02-15-preview} # this is mandatory
14
  temperature: 0
15
  vision: true
16
  response_format: text
 
10
  model_id: gpt-4o # the model id should be same as deployment id in Azure dashboard
11
  api_key: ${env| custom_openai_key, openai_api_key}
12
  endpoint: ${env| custom_openai_endpoint, https://api.openai.com/v1} # should be same as deployment endpoint in Azure dashboard
13
+ api_version: ${env| custom_openai_api_version, 2024-02-01} # this is mandatory
14
  temperature: 0
15
  vision: true
16
  response_format: text