9 Commits

Author SHA1 Message Date
Wong
0952d33ed7 fix(llm): survive api_key key pools in the config resolver (#1300)
* fix(llm): survive api_key key pools in the config resolver

A catalog profile configured with multiple keys (api_key as a JSON array)
crashes get_llm_config(): the placeholder check in
_get_llm_config_from_resolver does set membership on the raw list, which
raises TypeError: unhashable type: 'list' — taking down every LLM call in
the process, not just multi-key deployments.

This is a regression of #962's behavior: cc23cbe3a (#863) added a second
placeholder check in the resolver without wrapping the key through
primary_api_key(), which #962 introduced for exactly this reason. The
provider layer (OpenAICompatProvider) already accepts str | list[str] and
rotates via KeyPool — only the resolver entry was left behind.

Fix: unwrap through primary_api_key() for the placeholder check and pass
the full list through to the provider so KeyPool keeps rotating.

Tests: 4-key array reaches KeyPool intact; placeholder check uses the
primary key; single-key profiles behave exactly as before.

* style: ruff format

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: interia <interia@interiadeMac-mini.local>
Co-authored-by: Claude <noreply@anthropic.com>
2026-09-10 23:44:20 +08:00
evan188199-tech
cc23cbe3ac fix(runtime): reject invalid homes and placeholder OpenAI keys (#863)
Co-authored-by: evan <evan@dazongguandeMac-mini.local>
2026-08-16 19:08:33 +08:00
Bingxi Zhao (Frank)
3d5c3a1eb5 improve chat 2026-05-12 02:20:30 +08:00
Bingxi Zhao (Frank)
85779c846b refactor env settings and installation 2026-05-11 12:59:56 +08:00
Bingxi Zhao (Frank)
eff1c0dff6 prepare v1.3.6 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 16:35:52 +08:00
Bingxi Zhao (Frank)
4b7d24d33e release: v1.2.3 — document attachments, thinking blocks, provider core refactor
- Chat document attachments (PDF/DOCX/XLSX/PPTX) with text extraction
- Reasoning model <think> block display as collapsible cards
- Tri-state send_dimensions toggle for embeddings (#368)
- LLM provider_core module refactor + context_window detection
- Soul template editor (PR #373), Co-Writer save-to-notebook
- Knowledge Base drag-and-drop upload, delete resilience (#370),
  progress persistence, supported-file-types endpoint
- Question generation language fidelity via shared prompt directives
- Settings tour redesign, CLI notebook add-md/replace-md
- Bug fixes: CJK bot name slug, I18nProvider init, Skills default off,
  Moonshot base URL, version badge
- Provider registry: custom_anthropic, thinking_style, alias expansion
- +1900 test lines across 15 new/expanded test files

Made-with: Cursor
2026-04-24 22:36:32 +08:00
Bingxi Zhao (Frank)
f3779138ae fix: remove lightrag and unify llm & search config 2026-03-13 23:48:49 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00
Scarlet Moore
6224e93092 Feature/llm hardening core slim (#52)
* Core LLM hardening (slim): essential fixes and tests only

* Add Anthropic and Local provider implementations
2026-01-29 14:08:39 +11:00