-
[OPIK-3322] [BE][FE] Add Opik Built-in LLM Provider (#4310)
发布于
2025-12-09 14:33:28 +00:00 - [OPIK-3322] [BE][FE] Add Opik Built-in LLM Provider
Implement a system-managed 'Opik Built-in' LLM provider that allows
administrators to provide a pre-configured LLM model to users without
requiring them to set up their own API keys.Backend changes:
- Add BuiltinLlmProviderConfig for environment-based configuration
- Add OPIK_BUILTIN provider type to LlmProvider enum
- Implement model name transformation (opik-builtin-model -> actual model)
- Expose actual model/provider via custom HTTP headers for span tracking
- Add virtual provider injection in API responses
- Add readOnly flag for system-managed providers
- Protect built-in provider from deletion
- Add CORS configuration for custom headers
Frontend changes:
- Add OPIK_BUILTIN provider type and model
- Add Opik icon for the built-in provider
- Filter built-in provider from setup dialog
- Use readOnly flag for edit/delete protection
- Capture actual model/provider from response headers for spans
Tests:
- Add LlmProviderApiKeyResourceBuiltinProviderTest integration tests
- Update LlmProviderFactoryTest for built-in provider scenarios
Implements OPIK-3322: Opik Default Provider
-
Add proper Opik svg
-
Tackle review comments
-
Fix showing of Opik builtin provider in playground modal when feature is off
-
Address review comments
-
Revision 2: Address PR review comments - refactor built-in provider logic
下载附件