mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Provider setup now carries the metadata needed for sponsored and local Anthropic-compatible providers, while keeping provider URLs and API keys editable in the desktop form. The desktop UI also exposes API-key links, optional sponsor copy, full key visibility, and local no-key presets that can be activated into runtime settings. Constraint: Local LM Studio and Ollama integrations require Anthropic-compatible root URLs rather than OpenAI /v1 URLs Rejected: Keep local providers at the top of the preset list | user requested them immediately before Custom Confidence: high Scope-risk: moderate Directive: Do not change local provider base URLs to /v1 without rechecking Anthropic compatibility docs Tested: bun test src/server/__tests__/provider-presets.test.ts src/server/__tests__/providers.test.ts Tested: cd desktop && bun run lint Tested: cd desktop && bun run test src/__tests__/generalSettings.test.tsx --run Tested: git diff --cached --check Tested: Web UI provider creation plus real sessions for LM Studio, Ollama, JiekouAI, and Shengsuanyun Not-tested: Production packaged Tauri build