feat: provider-agnostische lokale LLM-Anbindung (Ollama-Support) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/1/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Was & Warum
Macht die lokale LLM-Anbindung provider-agnostisch und unterstützt damit Ollama neben LM Studio — ohne Provider-Setting/Enum. Endpoints bleiben freie URLs (Failover unverändert); der Client sondiert die nativen Metadaten-Endpunkte und nimmt, was antwortet. Muster geborgt aus
markdown-presentation(Kit-first).Spec:
docs/superpowers/specs/2026-07-07-ollama-provider-agnostic-design.mdPlan:
docs/superpowers/plans/2026-07-07-ollama-provider-agnostic.mdÄnderungen (8 Commits)
src/core/model-info.ts— LM-Studio- + Ollama-Parser,suppressParams,isAlwaysOnThinker(obsidian-frei,check:pure).LmStudioClient→LocalLlmClient(provider-agnostischer Name).modelInfo()-Doppel-Sonde — LM Studio/api/v0/models→ Fallback OllamaPOST /api/show(model_info["<arch>.context_length"]).reasoning_effort:"none"+enable_thinking:false+reasoning_budget:0(deckt Ollama/vLLM/llama.cpp/LM Studio; Ollama-Gotcha:reasoning_effortimmer String).OLLAMA_ORIGINSverweigert den Stream; Client fällt einmal aufpostJsonmitstream:falsezurück (CORS-frei viarequestUrl), merkt sichstreamRefusedpro Lauf.run.md-Frontmatteralways_on_thinker: true+ einmalige Notice, statt stiller Kontext-Verschwendung.Review & Tests
bf57040): Non-Stream-Fallback klassifizierte eine erfolgreiche Antwort mit „context window"-Phrase fälschlich als Overflow (Ollamas Default-Pfad) — Reorder auf content-first + neuer Test; Re-Review „Fix confirmed".npm run gateexit 0 (lint + typecheck + test + check:pure + check:bundle).src/weiterhin git-frei.Offen (nicht in CI möglich)
http://localhost:11434/v1) + LM-Studio-Gegenprobe — AGENTS.md §Smoke, Gate vor Release/Store-Submission. Jays Aktion.🤖 Generated with Claude Code
Manuell via
--no-ffnachmaingemergt als28d74dc.Manueller Ollama-Smoke gegen
gemma4:e4bgrün (beide Beispiel-Crewsok), Gate grün (273 Tests). Schließe den PR.Co-Authored-By: Claude Opus 4.8 (1M context)
Pull request closed