diff options
| author | Michael Peter Christen <mc@yacy.net> | 2025-12-08 00:13:38 +0100 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2025-12-08 00:13:38 +0100 |
| commit | c5801d3215a0969bcf90fb2d882775302cd92f19 (patch) | |
| tree | 232011e6090ee0100ab08e5c13c3991d1a413efa /htroot/yacychat.html | |
| parent | eed704d23bc53e5d0359072e5e2134b469ae2eef (diff) | |
added AIShield config page for chat access settings. Also added chat to top menu in case that was wanted by the user. Also added the AILab to the main menu.
Diffstat (limited to 'htroot/yacychat.html')
| -rw-r--r-- | htroot/yacychat.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/htroot/yacychat.html b/htroot/yacychat.html index 26ee71cd1..ff68f18cf 100644 --- a/htroot/yacychat.html +++ b/htroot/yacychat.html @@ -542,8 +542,14 @@ </style> </head> <body id="IndexControl"> - #%env/templates/header.template%# - #%env/templates/submenuAI.template%# + #(topmenu)# + #%env/templates/embeddedheader.template%# + :: + #%env/templates/simpleheader.template%# + :: + #%env/templates/header.template%# + #%env/templates/submenuAI.template%# + #(/topmenu)# <h2>YaCy Chat</h2> <p>Chat with your configured LLM using the local YaCy settings. Requests are sent to the same host that served this page.</p> @@ -1103,6 +1109,9 @@ body: JSON.stringify(payload) }); if (!response.ok) { + if (response.status === 429) { + throw new Error('Rate limit reached: please wait and try again. The server is protecting itself from overload.'); + } throw new Error(`Request failed: ${response.status} ${response.statusText}`); } if (!response.body) { |
