fix: add validation for URL and params

This commit is contained in:
Abhishek Kumar 2026-06-02 12:45:13 +05:30
parent 858c474139
commit 7a3b1c4a4b
11 changed files with 327 additions and 129 deletions

View file

@ -260,7 +260,10 @@ async def _perform_retrieval(
"Model Configurations > Embedding."
)
if embeddings_provider == ServiceProviders.AZURE.value and embeddings_endpoint:
if (
embeddings_provider == ServiceProviders.AZURE.value
and embeddings_endpoint
):
embedding_service = AzureOpenAIEmbeddingService(
db_client=db_client,
api_key=embeddings_api_key,