mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 02:33:48 +00:00
Improved the assistants page with categories for assistant plugins (#1211)
This commit is contained in:
1 parent
ef059ffd15
commit
1db0f85898
74 files changed
+3392
-380
No files matched your search
@@ -16,6 +16,10 @@ public sealed class DirectChatService(SettingsManager settingsManager, DataSourc
|
||||
|
||||
public async Task<DirectChatStartResult> TryCreateAssistantChatAsync(PluginAssistants assistantPlugin)
|
||||
{
|
||||
// Every way to a launcher leads through here, the one from the Assistant Builder included:
|
||||
if (settingsManager.IsDisabledByItsCategories(assistantPlugin))
|
||||
return new(null, TA("Your organization disabled the categories of this assistant."));
|
||||
|
||||
if (assistantPlugin.ChatLaunchConfiguration is not { } launchConfiguration)
|
||||
return new(null, TB("The assistant plugin does not contain a valid chat launch configuration."));
|
||||
|
||||
|
||||
Reference in new issue
Block a user