From 7d897ad9bb5ee46839ec91992cbbf4593168f119 Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Fri, 13 Feb 2026 03:02:36 +0000 Subject: 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 --- backend/app/schemas.py | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/app/schemas.py') 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" -- cgit v1.2.3