Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: remove davinci required model from azure provider (#586)

John Wang3dc82fb0448b
diff --git a/api/core/llm/provider/azure_provider.py b/api/core/llm/provider/azure_provider.py
index 706adc7be74..00a9e6ac2c0 100644
--- a/api/core/llm/provider/azure_provider.py
+++ b/api/core/llm/provider/azure_provider.py
@@ -97,12 +97,11 @@ class AzureProvider(BaseProvider):
models = self.get_models(credentials=config)
if not models:
- raise ValidateFailedError("Please add deployments for 'text-davinci-003', "
+ raise ValidateFailedError("Please add deployments for "
"'gpt-3.5-turbo', 'text-embedding-ada-002' (required) "
- "and 'gpt-4', 'gpt-35-turbo-16k' (optional).")
+ "and 'gpt-4', 'gpt-35-turbo-16k', 'text-davinci-003' (optional).")
fixed_model_ids = [
- 'text-davinci-003',
'gpt-35-turbo',
'text-embedding-ada-002'
]