mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 05:15:55 +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…
x
Reference in New Issue
Block a user