mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 11:17:59 +00:00
Added LiteLLM as a new LLM provider (#909)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
2965102c53
commit
5966f0f6a5
19 files changed
+206
-22
No files matched your search
@@ -26,7 +26,12 @@ public sealed class ProviderValidation
|
||||
|
||||
public string? ValidatingHostname(string hostname)
|
||||
{
|
||||
if(this.GetProvider() != LLMProviders.SELF_HOSTED)
|
||||
//
|
||||
// Every provider for which IsHostnameNeeded is true must be validated here. Otherwise,
|
||||
// the dialog shows a hostname field which nobody checks, and the provider silently ends
|
||||
// up as a NoProvider later on, because its base URI cannot be built:
|
||||
//
|
||||
if(this.GetProvider() is not (LLMProviders.SELF_HOSTED or LLMProviders.LITE_LLM))
|
||||
return null;
|
||||
|
||||
if(string.IsNullOrWhiteSpace(hostname))
|
||||
|
||||
Reference in new issue
Block a user