⬆️(backend) upgrade pydantic-ai-slim and remove mistralai

We upgraded pydantic-ai-slim to the latest version and add mistral has
extra dependency. Doing this, the direct dependance to mistral can be
removed and will be managed with pidantic-ai-slim package. The import of
mistralai has changed, we have to updagre them from mistralai to
mistralai.client
This commit is contained in:
Manuel Raynaud
2026-08-04 10:16:50 +02:00
parent 7439e3f94c
commit 050591e2ee
4 changed files with 59 additions and 48 deletions
@@ -9,7 +9,7 @@ from django.core.exceptions import ImproperlyConfigured
from langfuse import get_client, observe
from langfuse.openai import OpenAI as OpenAI_Langfuse
from mistralai import Mistral
from mistralai.client import Mistral
from core import enums
@@ -10,7 +10,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.test.utils import override_settings
import pytest
from mistralai import Mistral
from mistralai.client import Mistral
from openai import OpenAI, OpenAIError
from pydantic_ai.models.mistral import MistralModel
from pydantic_ai.models.openai import OpenAIChatModel