diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-13 03:02:36 +0000 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-13 03:02:36 +0000 |
| commit | 7d897ad9bb5ee46839ec91992cbbf4593168f119 (patch) | |
| tree | b4549f64176e93474b3b6c4b36294d30a46230b7 /backend/app/schemas.py | |
| parent | 2f19d8cb84598e0822b525f5fb5c456c07448fb7 (diff) | |
Add Claude provider, OpenRouter fallback, and GFM markdown support
- Add Claude (Anthropic) as third LLM provider with streaming support
- Add OpenRouter as transparent fallback when official API keys are missing or fail
- Add remark-gfm to ReactMarkdown for table/strikethrough rendering
- Claude models: sonnet-4.5, opus-4, opus-4.5, opus-4.6
- Backend: new stream_claude(), stream_openrouter(), provider routing, API key CRUD
- Frontend: model selectors, API key inputs for Claude and OpenRouter
- Auto-migration for new DB columns (claude_api_key, openrouter_api_key)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/app/schemas.py')
| -rw-r--r-- | backend/app/schemas.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/app/schemas.py b/backend/app/schemas.py index 54c0560..8e5f12c 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -23,6 +23,7 @@ class Context(BaseModel): class ModelProvider(str, Enum): OPENAI = "openai" GOOGLE = "google" + CLAUDE = "claude" class ReasoningEffort(str, Enum): LOW = "low" |
