lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Add OpenAI and Anthropic provider metadata

Open ishwarthecodddr opened this issue 1 month ago • 5 comments

Problem

OpenAI and Anthropic are partially integrated in the codebase but are missing provider metadata that other supported providers (Groq, Google, Mistral, OpenRouter, Ollama) already have.

Currently:

  • ✅ Both providers are listed in allowed provider IDs (packages/spec/src/config.ts)
  • ✅ SDK dependencies are installed
  • ✅ Basic implementation exists in the processor
  • ❌ Missing from provider-details.ts (no metadata like API key env vars, docs links, etc.)

This creates an inconsistency where these providers work but lack proper error messaging, user guidance, and configuration validation.

Proposed Solution

Add complete provider metadata entries for both OpenAI and Anthropic in packages/compiler/src/lib/lcp/api/provider-details.ts, including:

Benefits

  • ✅ Consistent provider integration across the codebase
  • ✅ Proper error messages showing correct environment variable names
  • ✅ User guidance with links to get API keys
  • ✅ Complete provider discovery and validation
  • ✅ Better troubleshooting documentation

Implementation

  • Update packages/compiler/src/lib/lcp/api/provider-details.ts
  • Update corresponding test file to include both providers
  • All existing tests continue to pass

Additional Context

This is a small, surgical change that completes the integration of two already-supported providers. No breaking changes or new dependencies required.

ishwarthecodddr avatar Oct 29 '25 18:10 ishwarthecodddr

Hi, I would love to work on this!

SarthakJain29 avatar Oct 29 '25 18:10 SarthakJain29

hi i would love to fix this issue

Vraj911 avatar Oct 29 '25 18:10 Vraj911

hi i would love to fix this issue

Rohit-Dnath avatar Oct 29 '25 21:10 Rohit-Dnath

Assigned to @ishwarthecodddr as he was the first, being the author

maxprilutskiy avatar Nov 10 '25 08:11 maxprilutskiy

Hello @maxprilutskiy sir,

I’ve completed the work related to this issue and submitted PR #1299 To allow the automated checks and review process to proceed, could you please assign this issue to me? so that the PR can proceed with reviews and workflow approvals?

Thank you for your time and support.

Image

Ketan-cmd avatar Nov 16 '25 20:11 Ketan-cmd