mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-12 11:32:11 +00:00
Add LiteLLM as a first-class provider. LiteLLM is a self-hosted AI gateway that exposes a single OpenAI-compatible endpoint in front of 100+ models across providers (OpenAI, Anthropic, Google, Azure, AWS Bedrock, and more). The provider mirrors the existing OpenAI-compatible providers: it uses the shared StreamOpenAICompatibleChatCompletion helper for streaming chat and LoadModelsResponse against /v1/models for automatic model discovery. The user supplies the base URL of their proxy; it is normalized and the OpenAI-compatible /v1/ path is appended. It uses the self-hosted trust policy and confidence handling, since the gateway owner decides which downstream providers requests are routed to. Wired through the standard plumbing: the LLMProviders enum, LLMProvidersExtensions (name, confidence, factory, hostname/API-key requirements), ProviderExtensions (capabilities + reasoning), and SettingsManager (per-scheme confidence levels). Hostname and API key are both required. Added a user-facing changelog entry and updated the configuration-plugin docs to include the new LITE_LLM confidence key. |
||
|---|---|---|
| .. | ||
| DataModel | ||
| ChatTemplate.cs | ||
| ConfigMeta.cs | ||
| ConfigMetaBase.cs | ||
| ConfigurableAssistant.cs | ||
| ConfigurationSelectDataFactory.cs | ||
| DataSourceSecuritySettings.cs | ||
| DataSourceSecurityTrustExtensions.cs | ||
| EmbeddingProvider.cs | ||
| IConfig.cs | ||
| IDataSource.cs | ||
| IERIDataSource.cs | ||
| IExternalDataSource.cs | ||
| IInternalDataSource.cs | ||
| ManagedConfiguration.cs | ||
| ManagedConfiguration.Parsing.cs | ||
| ManagedConfiguration.Register.cs | ||
| ManagedConfigurationMode.cs | ||
| ManagedEditableDefaultState.cs | ||
| NoConfig.cs | ||
| Profile.cs | ||
| ProfilePreselection.cs | ||
| ProfilePreselectionMode.cs | ||
| Provider.cs | ||
| ProviderCapabilityOverrides.cs | ||
| ProviderExtensions.Alibaba.cs | ||
| ProviderExtensions.Anthropic.cs | ||
| ProviderExtensions.cs | ||
| ProviderExtensions.DeepSeek.cs | ||
| ProviderExtensions.Google.cs | ||
| ProviderExtensions.Mistral.cs | ||
| ProviderExtensions.OpenAI.cs | ||
| ProviderExtensions.OpenRouter.cs | ||
| ProviderExtensions.OpenSource.cs | ||
| ProviderExtensions.Perplexity.cs | ||
| ProviderExtensions.Reasoning.cs | ||
| SettingsManager.cs | ||
| SettingsMigrations.cs | ||
| SettingsWriteBlockReason.cs | ||
| TolerantEnumConverter.cs | ||
| TranscriptionProvider.cs | ||
| Version.cs | ||