diff --git a/api/core/llm/provider/azure_provider.py b/api/core/llm/provider/azure_provider.py index db831ace08085d..54b7af646278e8 100644 --- a/api/core/llm/provider/azure_provider.py +++ b/api/core/llm/provider/azure_provider.py @@ -44,6 +44,7 @@ def get_credentials(self, model_id: Optional[str] = None) -> dict: 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