first push

This commit is contained in:
Chevallier
2026-06-12 18:16:58 +02:00
commit a7d8914e25
53 changed files with 1655 additions and 0 deletions

12
backend/app/llm/client.py Normal file
View File

@@ -0,0 +1,12 @@
from openai import AsyncOpenAI
from app.core.config import settings
def get_llm_client() -> AsyncOpenAI:
"""
Initialise le client de génération (LLM) compatible OpenAI.
Configuré pour pointer vers notre instance locale llama.cpp (Gemma 4).
"""
return AsyncOpenAI(
base_url=settings.llm_base_url,
api_key=settings.llm_api_key,
)

View File

View File