lingo.dev
lingo.dev copied to clipboard
feat(provider): add AI/ML API integration via AI SDK
This PR introduces AI/ML API as a provider integration via the AI SDK.
From https://github.com/lingodotdev/lingo.dev/issues/1154
✅ Features:
- Added provider configuration for AI/ML API
- Verified compatibility with spec v1 models (chat/completions)
- Tested with
deepseek/deepseek-chatandopenai/gpt-4oas default model
🖼️ Demo:
Usage example:
export default lingoCompiler.next({
sourceLocale: 'en',
targetLocales: ['ja-JP'],
models: {
'*:*': 'aimlapi:openai/gpt-4o',
},
})(baseConfig);
Checklist
- [x] Added provider implementation
- [x] Verified integration with AI SDK
- [x] Provided screenshot of working example