mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 08:21:36 +00:00
Fixed a bug in the comparison of GUIDs and adapted the explanation in the lua template.
This commit is contained in:
parent
311092ec5e
commit
ae27a36c09
@ -3,6 +3,7 @@ require("icon")
|
|||||||
-- ------
|
-- ------
|
||||||
-- This is an example of a configuration plugin. Please replace
|
-- This is an example of a configuration plugin. Please replace
|
||||||
-- the placeholders and assign a valid ID.
|
-- the placeholders and assign a valid ID.
|
||||||
|
-- IDs should be lower-case.
|
||||||
-- ------
|
-- ------
|
||||||
|
|
||||||
-- The ID for this plugin:
|
-- The ID for this plugin:
|
||||||
@ -97,9 +98,7 @@ CONFIG["SETTINGS"] = {}
|
|||||||
|
|
||||||
-- Configure the preselected profile.
|
-- Configure the preselected profile.
|
||||||
-- It must be one of the profile IDs defined in CONFIG["PROFILES"].
|
-- It must be one of the profile IDs defined in CONFIG["PROFILES"].
|
||||||
-- Be aware that the ID must be using the same casing as defined in the profile.
|
-- Using an empty string ("") will lock the preselected profile selection, even though no valid preselected profile is found.
|
||||||
-- When the ID is using upper case letters, but using lower case letters in this
|
|
||||||
-- setting, the preselection will not work.
|
|
||||||
-- CONFIG["SETTINGS"]["DataApp.PreselectedProfile"] = "00000000-0000-0000-0000-000000000000"
|
-- CONFIG["SETTINGS"]["DataApp.PreselectedProfile"] = "00000000-0000-0000-0000-000000000000"
|
||||||
|
|
||||||
-- Example chat templates for this configuration:
|
-- Example chat templates for this configuration:
|
||||||
|
|||||||
@ -263,7 +263,7 @@ public sealed class SettingsManager
|
|||||||
if (preselection != Profile.NO_PROFILE)
|
if (preselection != Profile.NO_PROFILE)
|
||||||
return preselection;
|
return preselection;
|
||||||
|
|
||||||
preselection = this.ConfigurationData.Profiles.FirstOrDefault(x => x.Id == this.ConfigurationData.App.PreselectedProfile);
|
preselection = this.ConfigurationData.Profiles.FirstOrDefault(x => x.Id.Equals(this.ConfigurationData.App.PreselectedProfile, StringComparison.InvariantCultureIgnoreCase));
|
||||||
return preselection ?? Profile.NO_PROFILE;
|
return preselection ?? Profile.NO_PROFILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ public sealed class SettingsManager
|
|||||||
if (preselection != ChatTemplate.NO_CHAT_TEMPLATE)
|
if (preselection != ChatTemplate.NO_CHAT_TEMPLATE)
|
||||||
return preselection;
|
return preselection;
|
||||||
|
|
||||||
preselection = this.ConfigurationData.ChatTemplates.FirstOrDefault(x => x.Id == this.ConfigurationData.App.PreselectedChatTemplate);
|
preselection = this.ConfigurationData.ChatTemplates.FirstOrDefault(x => x.Id.Equals(this.ConfigurationData.App.PreselectedChatTemplate, StringComparison.InvariantCultureIgnoreCase));
|
||||||
return preselection ?? ChatTemplate.NO_CHAT_TEMPLATE;
|
return preselection ?? ChatTemplate.NO_CHAT_TEMPLATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user