SimpleChatTCRV:AnveshikaSallap: cleanup in general
Rename the default 2 chat session names to make them neutral. Update internal name to include AnveshikaSallap, better matching the semantic of the logic, given support for tool calling, vision, reasoning, ... Also update usage note wrt simpleproxy.py for web access related tool calls and few other minor tweeks.
This commit is contained in:
parent
a4e023d21c
commit
856f403f1d
|
|
@ -1,11 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>SimpleChat LlamaCppEtal </title>
|
||||
<title>SimpleChat/AnveshikaSallap LlamaCppEtal </title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="message" content="Save Nature Save Earth" />
|
||||
<meta name="description" content="SimpleChat: trigger LLM web service endpoints /chat/completions and /completions, single/multi chat sessions" />
|
||||
<meta name="description" content="SimpleChat/AnveshikaSallap: trigger LLM web service endpoints /chat/completions and /completions, multiple chat sessions with own settings, tool calling with builtin tool calls, reasoning, vision" />
|
||||
<meta name="author" content="by Humans for All" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||
<script type="importmap">
|
||||
|
|
@ -13,7 +13,8 @@
|
|||
"imports": {
|
||||
"simplechat": "./simplechat.js",
|
||||
"datautils": "./datautils.mjs",
|
||||
"ui": "./ui.mjs"
|
||||
"ui": "./ui.mjs",
|
||||
"toolsmanager": "./tools.mjs",
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
# SimpleChat
|
||||
# SimpleChat / AnveshikaSallap
|
||||
|
||||
by Humans for All.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
// @ts-check
|
||||
// Core classes which provide a simple implementation of handshake with ai server's completions and chat/completions endpoints
|
||||
// as well as related web front end logic for basic usage and testing.
|
||||
// Core classes which provide a simple implementation of handshake with ai server's completions and
|
||||
// chat/completions endpoints as well as related web front end logic for basic usage and testing.
|
||||
// Supports tool calling (including a bunch of builtin ones), reasoning and vision related handshakes,
|
||||
// if supported by the ai model, that one is interacting with.
|
||||
//
|
||||
// by Humans for All
|
||||
|
||||
import * as du from "./datautils.mjs";
|
||||
|
|
@ -18,6 +21,7 @@ export const AI_TC_SESSIONNAME = `TCExternalAI`
|
|||
|
||||
const ROLES_TEMP_ENDSWITH = TEMP_MARKER
|
||||
|
||||
|
||||
export class Roles {
|
||||
static System = "system";
|
||||
static User = "user";
|
||||
|
|
@ -451,21 +455,26 @@ function usage_note(sRecentUserMsgCnt) {
|
|||
<details id="DefaultUsage">
|
||||
<summary class="role-system">Usage Note</summary>
|
||||
<ul class="ul1">
|
||||
<li> New button creates new chat session, with its own system prompt.</li>
|
||||
<li> New btn creates new chat session, with its own system prompt & settings.</li>
|
||||
<li> Prompt button toggles system prompt entry.</li>
|
||||
<li> System prompt above, helps control ai response characteristics.</li>
|
||||
<ul class="ul2">
|
||||
<li> Completion mode - no system prompt normally.</li>
|
||||
<li> System prompt, helps control ai response characteristics.</li>
|
||||
<li> No system prompt normally if using Completion mode</li>
|
||||
</ul>
|
||||
<li> Use shift+enter for inserting enter/newline.</li>
|
||||
<li> Enter your query/response to ai assistant in text area provided below.</li>
|
||||
<li> Use image button for vision models, submitting or switching session clears same </li>
|
||||
<li> Settings button allows current chat session's configuration to be updated.</li>
|
||||
<li> Remember that each chat session has its own setting.</li>
|
||||
<li> settings-tools-enabled should be true to enable tool calling.</li>
|
||||
<li> Enter your query/response to ai assistant in user input area provided below.</li>
|
||||
<ul class="ul2">
|
||||
<li> If ai assistant requests a tool call, verify same before triggering.</li>
|
||||
<li> image btn for vision models, submitting / switching session clears same </li>
|
||||
</ul>
|
||||
<li> Settings button allows current chat session's configuration to be updated.</li>
|
||||
<ul class="ul2">
|
||||
<li> Remember that each chat session has its own setting.</li>
|
||||
</ul>
|
||||
<li> settings-tools-enabled should be true for tool calling.</li>
|
||||
<ul class="ul2">
|
||||
<li> if ai assistant requests a tool call, verify same before triggering.</li>
|
||||
<li> submit tool response placed into user query/response text area</li>
|
||||
<li> for web access inc search/pdf tool calls, run included simpleproxy.py</li>
|
||||
</ul>
|
||||
<li> ContextWindow = [System, ${sRecentUserMsgCnt} User Query/Resp, Cur Query].</li>
|
||||
<ul class="ul2">
|
||||
|
|
@ -2157,7 +2166,7 @@ export class Config {
|
|||
export class Me {
|
||||
|
||||
constructor() {
|
||||
this.defaultChatIds = [ "Default", "Other", AI_TC_SESSIONNAME ];
|
||||
this.defaultChatIds = [ "Chat1", "Chat2", AI_TC_SESSIONNAME ];
|
||||
this.defaultCfg = new Config()
|
||||
this.multiChat = new MultiChatUI(this);
|
||||
this.toolsMgr = new mTools.ToolsManager()
|
||||
|
|
|
|||
Loading…
Reference in New Issue