mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat: fix azure embedding Too many inputs problem (#530)
This commit is contained in:
parent
11baff6740
commit
6eee7cb42c
|
@ -44,6 +44,7 @@ class AzureProvider(BaseProvider):
|
|||
config['openai_api_type'] = 'azure'
|
||||
if model_id == 'text-embedding-ada-002':
|
||||
config['deployment'] = model_id.replace('.', '') if model_id else None
|
||||
config['chunk_size'] = 1
|
||||
else:
|
||||
config['deployment_name'] = model_id.replace('.', '') if model_id else None
|
||||
return config
|
||||
|
|
Loading…
Reference in New Issue
Block a user