Add anthropic_models capability

This commit is contained in:
Owen
2026-08-20 14:28:19 -04:00
parent df7e26a444
commit bafbf6e096
14 changed files with 584 additions and 18 deletions
@@ -33,6 +33,7 @@ const capabilityLabels: Record<string, string> = {
openai_chat: "OpenAI Chat Completions",
openai_responses: "OpenAI Responses",
anthropic_messages: "Anthropic Messages",
anthropic_models: "Anthropic Models",
gemini_generate_content: "Gemini",
google_generate_content: "Vertex AI (Generate Content)",
google_raw_predict: "Vertex AI (Raw Predict)",
@@ -20,6 +20,7 @@ const CAPABILITY_LABEL_KEYS: Record<AiCapability, string> = {
openai_chat: "aiCapabilityOpenaiChat",
openai_responses: "aiCapabilityOpenaiResponses",
anthropic_messages: "aiCapabilityAnthropicMessages",
anthropic_models: "aiCapabilityAnthropicModels",
gemini_generate_content: "aiCapabilityGeminiGenerateContent",
bedrock_model_invoke: "aiCapabilityBedrockModelInvoke",
google_generate_content: "aiCapabilityGoogleGenerateContent",
+1
View File
@@ -2,6 +2,7 @@ export const AI_CAPABILITIES = [
"openai_chat",
"openai_responses",
"anthropic_messages",
"anthropic_models",
"gemini_generate_content",
"bedrock_model_invoke",
"google_generate_content",
+7 -2
View File
@@ -43,7 +43,7 @@ export const AI_PROVIDER_DEFAULTS: Record<
anthropic: {
upstreamUrl: "https://api.anthropic.com",
authType: "x-api-key",
capabilities: ["anthropic_messages"]
capabilities: ["anthropic_messages", "anthropic_models"]
},
googleGemini: {
upstreamUrl: "https://generativelanguage.googleapis.com",
@@ -63,7 +63,12 @@ export const AI_PROVIDER_DEFAULTS: Record<
microsoftFoundry: {
upstreamUrl: null,
authType: "bearer",
capabilities: ["openai_chat", "openai_responses", "anthropic_messages"]
capabilities: [
"openai_chat",
"openai_responses",
"anthropic_messages",
"anthropic_models"
]
},
openRouter: {
upstreamUrl: "https://openrouter.ai/api/v1",