Claude commited on
Commit
001e605
Β·
unverified Β·
1 Parent(s): fa8bcf4

fix(deps): ajouter mistralai au extra [llm] et l'installer dans le Dockerfile

Browse files

pyproject.toml :
[llm] openai, anthropic β†’ openai, anthropic, mistralai>=1.0.0

Dockerfile :
pip install -e ".[web]" β†’ pip install -e ".[web,llm]"

mistralai n'Γ©tait pas dΓ©clarΓ© dans les dΓ©pendances optionnelles et
n'Γ©tait donc jamais installΓ© dans l'image Docker/HuggingFace.
L'adaptateur MistralAdapter Γ©chouait silencieusement sur ImportError
(attrapΓ© par le try/except de BaseLLMAdapter.complete()), retournant
LLMResult(text="", error="Le package 'mistralai' n'est pas installΓ©...").

https://claude.ai/code/session_017gXea9mxBQqDTAsSQd7aAq

Files changed (2) hide show
  1. Dockerfile +1 -1
  2. pyproject.toml +1 -0
Dockerfile CHANGED
@@ -34,7 +34,7 @@ COPY picarones/ picarones/
34
  RUN python -m venv /opt/venv
35
  ENV PATH="/opt/venv/bin:$PATH"
36
  RUN pip install --upgrade pip && \
37
- pip install -e ".[web]" && \
38
  pip cache purge
39
 
40
  # ──────────────────────────────────────────────────────────────────
 
34
  RUN python -m venv /opt/venv
35
  ENV PATH="/opt/venv/bin:$PATH"
36
  RUN pip install --upgrade pip && \
37
+ pip install -e ".[web,llm]" && \
38
  pip cache purge
39
 
40
  # ──────────────────────────────────────────────────────────────────
pyproject.toml CHANGED
@@ -53,6 +53,7 @@ kraken = ["kraken>=4.0.0"]
53
  llm = [
54
  "openai>=1.0.0",
55
  "anthropic>=0.20.0",
 
56
  ]
57
  # OCR cloud APIs
58
  ocr-cloud = [
 
53
  llm = [
54
  "openai>=1.0.0",
55
  "anthropic>=0.20.0",
56
+ "mistralai>=1.0.0",
57
  ]
58
  # OCR cloud APIs
59
  ocr-cloud = [