SimpleChatTC:tools.proxyUrl: rename to just proxyUrl

Next will be adding a proxyAuth field also to tools.
This commit is contained in:
hanishkvc 2025-10-27 11:10:08 +05:30
parent 6d08cda9c8
commit 044d1cf535
3 changed files with 5 additions and 5 deletions

View File

@ -226,7 +226,7 @@ It is attached to the document object. Some of these can also be updated using t
remember to enable this only for GenAi/LLM models which support tool/function calling.
* fetchProxyUrl - specify the address for the running instance of bundled local.tools/simpleproxy.py
* proxyUrl - specify the address for the running instance of bundled local.tools/simpleproxy.py
* searchUrl - specify the search engine's search url template along with the tag SEARCHWORDS in place where the search words should be substituted at runtime.
@ -411,7 +411,7 @@ manner by dropping head block as well as all scripts/styles/footers/headers/nav
dropping the html tags.
The client ui logic does a simple check to see if the bundled simpleproxy is running at specified
fetchProxyUrl before enabling these web and related tool calls.
proxyUrl before enabling these web and related tool calls.
The bundled simple proxy

View File

@ -1082,7 +1082,7 @@ class Me {
this.multiChat = new MultiChatUI();
this.tools = {
enabled: false,
fetchProxyUrl: "http://127.0.0.1:3128",
proxyUrl: "http://127.0.0.1:3128",
searchUrl: SearchURLS.duckduckgo,
toolNames: /** @type {Array<string>} */([]),
/**

View File

@ -45,7 +45,7 @@ function get_gme() {
*/
function proxyserver_get_1arg(toolcallid, toolname, obj, path, qkey, qvalue) {
if (gToolsWorker.onmessage != null) {
let newUrl = `${get_gme().tools.fetchProxyUrl}/${path}?${qkey}=${qvalue}`
let newUrl = `${get_gme().tools.proxyUrl}/${path}?${qkey}=${qvalue}`
fetch(newUrl).then(resp => {
if (!resp.ok) {
throw new Error(`${resp.status}:${resp.statusText}`);
@ -70,7 +70,7 @@ function proxyserver_get_1arg(toolcallid, toolname, obj, path, qkey, qvalue) {
* @param {Object<string, Object<string, any>>} tcs
*/
async function proxyserver_tc_setup(tag, tcPath, tcName, tcsData, tcs) {
await fetch(`${get_gme().tools.fetchProxyUrl}/aum?url=${tcPath}.jambudweepe.akashaganga.multiverse.987654321123456789`).then(resp=>{
await fetch(`${get_gme().tools.proxyUrl}/aum?url=${tcPath}.jambudweepe.akashaganga.multiverse.987654321123456789`).then(resp=>{
if (resp.statusText != 'bharatavarshe') {
console.log(`WARN:ToolWeb:${tag}:Dont forget to run the bundled local.tools/simpleproxy.py to enable me`)
return