Commit Graph

2 Commits

Author SHA1 Message Date
jules
f81ad25fc8 DeepSeek: drop /v1 from default baseURL, refresh model list
Provider's published URL is now https://api.deepseek.com (no /v1).
Default model list updated to V4 family (flash + pro). Legacy aliases
deepseek-chat / deepseek-reasoner are still accepted upstream but
deprecate 2026-07-24, so they don't belong in the picker default.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 20:33:18 +10:00
jules
7ff0ccb160 Initial commit
Multi-provider LLM picker for Crema apps. Sits on top of @crema/llm-ui
and adds:

- A named provider catalog (OpenAI, Anthropic, DeepSeek, Qwen, LM Studio)
  with default base URLs and suggested models.
- buildAdapter(): async factory that resolves the API key from a
  caller-injected resolveSecret() (direct mode) or assembles an
  ArcadiaProxyAdapter pointing at /api/v1/ai/llm/chat (proxy mode).
- LLMProvidersSettingsCard: provider/model picker, vault-key reference
  field with "looks like an API key" warning, direct/proxy toggle,
  context/response budgets, system prompt, optional Test connection.
- Persisted settings store at crema.llm-providers.settings, reactive
  via useSyncExternalStore.

The lib is provider-agnostic about how keys are stored; the consuming
app injects a resolveSecret() that hits whatever vault it owns.
arcadia-admin and vibespace both wire this to /api/v1/secrets/:name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 22:50:59 +10:00