fix: remove duplicate mistral adapter creation

This commit is contained in:
Andrej Milicevic 2025-11-13 16:06:07 +01:00
parent a5bd504daa
commit 3b7d030817

View file

@ -162,20 +162,5 @@ def get_llm_client(raise_api_key_error: bool = True):
endpoint=llm_config.llm_endpoint,
)
elif provider == LLMProvider.MISTRAL:
if llm_config.llm_api_key is None:
raise LLMAPIKeyNotSetError()
from cognee.infrastructure.llm.structured_output_framework.litellm_instructor.llm.mistral.adapter import (
MistralAdapter,
)
return MistralAdapter(
api_key=llm_config.llm_api_key,
model=llm_config.llm_model,
max_completion_tokens=max_completion_tokens,
endpoint=llm_config.llm_endpoint,
)
else:
raise UnsupportedLLMProviderError(provider)