feat: add support for Anthropic provider, including configuration and conversion utilities
This commit is contained in:
@@ -1,7 +1,31 @@
|
||||
[base]
|
||||
# provider can be [ openai|openrouter|anthropic|google]
|
||||
provider = openrouter
|
||||
|
||||
[openrouter]
|
||||
api_key = YOUR_API_KEY
|
||||
base_url = https://openrouter.ai/api/v1
|
||||
model = openai/gpt-4o-2024-11-20
|
||||
context_window = 128000
|
||||
|
||||
[anthropic]
|
||||
api_key = YOUR_API_KEY
|
||||
base_url = https://api.anthropic.com/v1/messages
|
||||
model = claude-3-7-sonnet-20250219
|
||||
context_window = 128000
|
||||
|
||||
[google]
|
||||
api_key = YOUR_API_KEY
|
||||
base_url = https://generativelanguage.googleapis.com/v1beta/generateContent
|
||||
model = gemini-2.0-flash
|
||||
context_window = 1000000
|
||||
|
||||
|
||||
[openai]
|
||||
api_key = YOUR_API_KEY
|
||||
base_url = CUSTOM_BASE_URL
|
||||
model = YOUR_MODEL_ID
|
||||
base_url = https://api.openai.com/v1
|
||||
model = openai/gpt-4o
|
||||
context_window = 128000
|
||||
|
||||
[mcp]
|
||||
servers_json = config/mcp_config.json
|
||||
|
||||
Reference in New Issue
Block a user