Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
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
1 change: 0 additions & 1 deletion readme.md

This file was deleted.

1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
English README placeholder\n(This file replaces a symlink to make the repo Windows-friendly. Please ensure the canonical README is updated in the main README.)
1 change: 0 additions & 1 deletion readme/en.md

This file was deleted.

1 change: 1 addition & 0 deletions readme/en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
English README placeholder\n(This file replaces a symlink to make the repo Windows-friendly. Please ensure the canonical README is updated in the main README.)