Add OPENAI_BASE_URL and end-to-end AI tests through the SDK

- Optional OPENAI_BASE_URL for OpenAI-compatible endpoints or proxies
- Tests run the real openai SDK against a local stub server: request
  shape (model, auth, strict json_schema), text cleanup, photo import
  and an authentication error mapped to the UI message

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Kyle Dammann
2026-10-30 22:06:35 +01:00
co-authored by Claude Opus 5.5
parent 74e11845de
commit 3b72436119
6 changed files with 84 additions and 1 deletions
+2
View File
@@ -65,6 +65,8 @@ OPENAI_MODEL=gpt-5-mini
# Nur für Reasoning-Modelle (gpt-5*, o*): minimal|low|medium|high. Für andere Modelle leer lassen.
OPENAI_REASONING_EFFORT=low
OPENAI_TIMEOUT=90
# Optional: OpenAI-kompatibler Endpunkt/Proxy, leer = api.openai.com
OPENAI_BASE_URL=
# Optionale Kostenbremse: KI-Aufrufe pro Tag (0 = unbegrenzt)
AI_RATE_LIMIT_PER_USER_PER_DAY=0
AI_RATE_LIMIT_GLOBAL_PER_DAY=0