This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
spec/lib/modules/ai_bot/personas Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -96,29 +96,6 @@ def system_prompt
9696 end
9797
9898 it "enforces enums" do
99- xml = <<~XML
100- <function_calls>
101- <invoke>
102- <tool_name>search</tool_name>
103- <tool_id>call_JtYQMful5QKqw97XFsHzPweB</tool_id>
104- <parameters>
105- <max_posts>"3.2"</max_posts>
106- <status>cow</status>
107- <foo>bar</foo>
108- </parameters>
109- </invoke>
110- <invoke>
111- <tool_name>search</tool_name>
112- <tool_id>call_JtYQMful5QKqw97XFsHzPweB</tool_id>
113- <parameters>
114- <max_posts>"3.2"</max_posts>
115- <status>open</status>
116- <foo>bar</foo>
117- </parameters>
118- </invoke>
119- </function_calls>
120- XML
121-
12299 tool_call =
123100 DiscourseAi ::Completions ::ToolCall . new (
124101 name : "search" ,
@@ -270,12 +247,14 @@ def system_prompt
270247 DiscourseAi ::AiBot ::Personas ::Researcher ,
271248 DiscourseAi ::AiBot ::Personas ::SettingsExplorer ,
272249 DiscourseAi ::AiBot ::Personas ::SqlHelper ,
250+ DiscourseAi ::AiBot ::Personas ::WebArtifactCreator ,
273251 ] ,
274252 )
275253
276254 # omits personas if key is missing
277255 SiteSetting . ai_stability_api_key = ""
278256 SiteSetting . ai_google_custom_search_api_key = ""
257+ SiteSetting . ai_artifact_security = "disabled"
279258
280259 expect ( DiscourseAi ::AiBot ::Personas ::Persona . all ( user : user ) ) . to contain_exactly (
281260 DiscourseAi ::AiBot ::Personas ::General ,
You can’t perform that action at this time.
0 commit comments