diff --git a/api-playground.html b/api-playground.html index 0c804d8..09f4817 100644 --- a/api-playground.html +++ b/api-playground.html @@ -1129,7 +1129,7 @@

Chat with -

A short, unique name. The prefix `system-` will be added automatically. +

A short, unique name. The prefix "system-" will be added automatically.

@@ -1156,7 +1156,7 @@

Chat with
-

Drag & drop a .md file here, or

+

Drag & drop a Markdown (.md) file here, or

@@ -1213,8 +1213,8 @@

Step 5: Modify Session Settings

Step 6: Ask a Question

-

With our session configured, we can interact with it. Your `Session ID` and any selected - functions are automatically included in the request.

+

With our session configured, we can interact with it. Your Session ID and any selected + functions will be automatically included in the request.

@@ -1303,9 +1303,9 @@

API Categories

oauthEndpoints: null, isAgentSession: false, currentAgent: null, - availableFunctions: [], // Handles functions fetched from the API - availableAgents: [], // Handles agents fetched from the API - currentSessionTools: [], // Handles tools bound to the current session + availableFunctions: [], // Handles functions fetched from the API + availableAgents: [], // Handles agents fetched from the API + currentSessionTools: [], // Handles tools bound to the current session lastChatCompletionBody: null, // Handles last chat completion request body }, @@ -3121,7 +3121,7 @@
Bind Functions to Session
return await processResponse(response); } else { if (response.status === 404) { - throw new Error(`Server returned 404 (Not Found). Please check if the Endpoint URL is correct and if it supports OpenID discovery.`); + throw new Error(`Server returned 404 (Not Found). Please check whether the Endpoint URL is correct and whether it supports OpenID discovery.`); } else if (response.status >= 500) { throw new Error(`The server experienced an internal error (Status: ${response.status}). Please try again later.`); } else { @@ -3214,7 +3214,7 @@
Bind Functions to Session
return t; }; - // Root key: prefer metadata.id, else H1 title fallback + // Root key: prefer metadata.id, else fallback to H1 title const h1 = (text.match(/^\s*#\s*(.+)$/m) || [, null])[1]; const rootKey = (metadata && metadata.id) ? String(metadata.id) : (h1 ? toCamel(h1) : 'agent'); const root = { [rootKey]: Object.assign({}, metadata || {}) };