Skip to content

Commit

Permalink
feat: remove davinci required model from azure provider (langgenius#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Jul 18, 2023
1 parent 1b88a02 commit 7ee5113
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/core/llm/provider/azure_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ def config_validate(self, config: Union[dict | str]):
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'
]
Expand Down

0 comments on commit 7ee5113

Please sign in to comment.