You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update readme wrt searchDrops, auto settings ui creation
Rename tools-auto to tools-autoSecs, to make it easy to realise
that the value represents seconds.
Copy file name to clipboardExpand all lines: tools/server/public_simplechat/readme.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,10 @@ It is attached to the document object. Some of these can also be updated using t
263
263
264
264
* 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.
265
265
266
+
* searchDrops - allows one to drop contents of html tags with specified id from the plain text search result.
267
+
268
+
* specify a list of dicts, where each dict should contain a 'tag' entry specifying the tag to filter like div or p or ... and also a 'id' entry which specifies the id of interest.
269
+
266
270
* iResultMaxDataLength - specify what amount of any tool call result should be sent back to the ai engine server.
267
271
268
272
* specifying 0 disables this truncating of the results, and inturn full result will be sent to the ai engine server.
@@ -271,7 +275,7 @@ It is attached to the document object. Some of these can also be updated using t
271
275
before a default timed out error response is generated and control given back to end user, for them to decide whether
272
276
to submit the error response or wait for actual tool call response further.
273
277
274
-
*auto - the amount of time in seconds to wait before the tool call request is auto triggered and generated response is auto submitted back.
278
+
*autoSecs - the amount of time in seconds to wait before the tool call request is auto triggered and generated response is auto submitted back.
275
279
276
280
setting this value to 0 (default), disables auto logic, so that end user can review the tool calls requested by ai and if needed even modify them, before triggering/executing them as well as review and modify results generated by the tool call, before submitting them back to the ai.
277
281
@@ -285,7 +289,7 @@ It is attached to the document object. Some of these can also be updated using t
285
289
286
290
If you want to add additional options/fields to send to the server/ai-model, and or modify the existing options value or remove them, for now you can update this global var using browser's development-tools/console.
287
291
288
-
For string, numeric and boolean fields in apiRequestOptions, including even those added by a user at runtime by directly modifying gMe.apiRequestOptions, setting ui entries will be auto created.
292
+
For string, numeric, boolean, object fields in apiRequestOptions, including even those added by a user at runtime by directly modifying gMe.apiRequestOptions, setting ui entries will be auto created.
289
293
290
294
cache_prompt option supported by example/server is allowed to be controlled by user, so that any caching supported wrt system-prompt and chat history, if usable can get used. When chat history sliding window is enabled, cache_prompt logic may or may not kick in at the backend wrt same, based on aspects related to model, positional encoding, attention mechanism etal. However system prompt should ideally get the benefit of caching.
0 commit comments