Skip to content

Commit 0d933f8

Browse files
Ketan-cmdKetanpattmaxprilutskiy
authored
chore: add OpenAI and Anthropic provider metadata and update tests (#1607)
Co-authored-by: Sruu <[email protected]> Co-authored-by: Max Prilutskiy <[email protected]>
1 parent 5d808bd commit 0d933f8

File tree

4 files changed

+1542
-0
lines changed

4 files changed

+1542
-0
lines changed

packages/compiler/src/lib/lcp/api/provider-details.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ describe("provider-details", () => {
66
expect(Object.keys(providerDetails)).toEqual([
77
"groq",
88
"google",
9+
"openai",
10+
"anthropic",
911
"openrouter",
1012
"ollama",
1113
"mistral",

packages/compiler/src/lib/lcp/api/provider-details.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ export const providerDetails: Record<
2424
getKeyLink: "https://ai.google.dev/",
2525
docsLink: "https://ai.google.dev/gemini-api/docs/troubleshooting",
2626
},
27+
openai: {
28+
name: "OpenAI",
29+
apiKeyEnvVar: "OPENAI_API_KEY",
30+
apiKeyConfigKey: "llm.openaiApiKey",
31+
getKeyLink: "https://platform.openai.com/account/api-keys",
32+
docsLink: "https://platform.openai.com/docs",
33+
},
34+
anthropic: {
35+
name: "Anthropic",
36+
apiKeyEnvVar: "ANTHROPIC_API_KEY",
37+
apiKeyConfigKey: "llm.anthropicApiKey",
38+
getKeyLink: "https://console.anthropic.com/get-api-key",
39+
docsLink: "https://console.anthropic.com/docs",
40+
},
2741
openrouter: {
2842
name: "OpenRouter",
2943
apiKeyEnvVar: "OPENROUTER_API_KEY",

0 commit comments

Comments
 (0)