Skip to content

Commit 9f5c2c8

Browse files
committed
SimpleChatTC:Cleanup Usage Note and its presentation a bit
Make it a details block and update the content a bit
1 parent 5d1c919 commit 9f5c2c8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tools/server/public_simplechat/simplechat.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
background-color: lightpink;
2929
}
3030

31+
#UsageNote {
32+
margin: 0.0vmin;
33+
}
34+
3135
.chat-message {
3236
border-style: solid;
3337
border-color: grey;

tools/server/public_simplechat/simplechat.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,23 +278,26 @@ class ChatMessageEx {
278278

279279

280280
let gUsageMsg = `
281-
<p class="role-system">Usage</p>
281+
<details>
282+
<summary id="UsageNote" class="role-system">Usage Note</summary>
282283
<ul class="ul1">
283-
<li> System prompt above, to try control ai response characteristics.</li>
284+
<li> System prompt above, helps control ai response characteristics.</li>
284285
<ul class="ul2">
285286
<li> Completion mode - no system prompt normally.</li>
286287
</ul>
287288
<li> Use shift+enter for inserting enter/newline.</li>
288-
<li> Enter your query to ai assistant in textarea provided below.</li>
289-
<li> If ai assistant requests a tool call, varify same before triggering it.</li>
289+
<li> Enter your query/response to ai assistant in textarea provided below.</li>
290+
<li> settings-tools-enable should be true to enable tool calling.</li>
290291
<ul class="ul2">
292+
<li> If ai assistant requests a tool call, verify same before triggering.</li>
291293
<li> submit tool response placed into user query textarea</li>
292294
</ul>
293295
<li> Default ContextWindow = [System, Last9 Query+Resp, Cur Query].</li>
294296
<ul class="ul2">
295297
<li> ChatHistInCtxt, MaxTokens, ModelCtxt window to expand</li>
296298
</ul>
297299
</ul>
300+
</details>
298301
`;
299302

300303

0 commit comments

Comments
 (0)