From 6eee7cb42c71655ec276c0f60974306267b52ce3 Mon Sep 17 00:00:00 2001 From: John Wang Date: Fri, 7 Jul 2023 11:17:36 +0800 Subject: [PATCH] feat: fix azure embedding Too many inputs problem (#530) --- api/core/llm/provider/azure_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/llm/provider/azure_provider.py b/api/core/llm/provider/azure_provider.py index db831ace08..54b7af6462 100644 --- a/api/core/llm/provider/azure_provider.py +++ b/api/core/llm/provider/azure_provider.py @@ -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