Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quick-maps-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lingo.dev/_compiler": major
---

Feature: Add OpenAI and Anthropic Provider Support
5 changes: 5 additions & 0 deletions .changeset/rotten-peas-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lingo.dev/_compiler": major
---

Feature: Add OpenAI and Anthropic Provider Support
2 changes: 2 additions & 0 deletions packages/compiler/src/lib/lcp/api/provider-details.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ describe("provider-details", () => {
expect(Object.keys(providerDetails)).toEqual([
"groq",
"google",
"openai",
"anthropic",
"openrouter",
"ollama",
"mistral",
Expand Down
14 changes: 14 additions & 0 deletions packages/compiler/src/lib/lcp/api/provider-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ export const providerDetails: Record<
getKeyLink: "https://ai.google.dev/",
docsLink: "https://ai.google.dev/gemini-api/docs/troubleshooting",
},
openai: {
name: "OpenAI",
apiKeyEnvVar: "OPENAI_API_KEY",
apiKeyConfigKey: "llm.openaiApiKey",
getKeyLink: "https://platform.openai.com/api-keys",
docsLink: "https://platform.openai.com/docs/guides/error-codes",
},
anthropic: {
name: "Anthropic",
apiKeyEnvVar: "ANTHROPIC_API_KEY",
apiKeyConfigKey: "llm.anthropicApiKey",
getKeyLink: "https://console.anthropic.com/settings/keys",
docsLink: "https://docs.anthropic.com/en/api/errors",
},
openrouter: {
name: "OpenRouter",
apiKeyEnvVar: "OPENROUTER_API_KEY",
Expand Down
Loading