managarten/services/mana-llm/src/providers
Till JS 3be4612f04 fix(mana-llm): google-genai v1.73 keyword-only Part.from_text()
google-genai >=1.70 changed Part.from_text() from positional to
keyword-only argument. The production container installed v1.73.1
and crashed on startup with "Part.from_text() takes 1 positional
argument but 2 were given".

Fix: Part.from_text(msg.content) → Part.from_text(text=msg.content)

Tested live: curl https://llm.mana.how/v1/chat/completions with
model=google/gemini-2.5-flash returns correct response.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 12:47:23 +02:00
..
__init__.py feat(mana-llm): add central LLM abstraction service 2026-01-29 22:01:00 +01:00
base.py feat(mana-llm): add central LLM abstraction service 2026-01-29 22:01:00 +01:00
google.py fix(mana-llm): google-genai v1.73 keyword-only Part.from_text() 2026-04-16 12:47:23 +02:00
ollama.py fix(mana-llm): add response_format to ChatCompletionRequest model 2026-04-09 18:50:54 +02:00
openai_compat.py feat(mana-llm): add central LLM abstraction service 2026-01-29 22:01:00 +01:00
router.py feat(mana-llm): add Google Gemini fallback provider with auto-routing 2026-03-23 22:44:09 +01:00