mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 17:27:21 +00:00
Added a home page prompt for missing API keys of enterprise providers (#1056)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
1f8d72aa45
commit
7d35536c87
29 files changed
+920
-31
No files matched your search
@@ -449,6 +449,15 @@ public static partial class PluginFactory
|
||||
.ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Collects what the running configuration plugins tell the user while AI Studio asks for an API key.
|
||||
/// </summary>
|
||||
/// <returns>The prompts of all configuration plugins, at most one per plugin.</returns>
|
||||
public static IReadOnlyList<DataUserAPIKeyPrompt> GetUserAPIKeyPrompts()
|
||||
{
|
||||
return ResolveLivePluginContent<PluginConfiguration, DataUserAPIKeyPrompt>("user API key prompt", plugin => plugin.UserAPIKeyPrompts).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Collects the mail servers which the running configuration plugins offer for new mailboxes.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user