Merge pull request #4464 from nesquena/release/stage-4448
Release v0.51.508 — RS (/model command works under reverse-proxy subpath, #4448)
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -3,6 +3,12 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [v0.51.508] — 2026-06-19 — Release RS (the /model command works under a reverse-proxy subpath)
|
||||
|
||||
### Fixed
|
||||
|
||||
- **The `/model` slash command now works when the WebUI is served under a subpath (#3368 follow-up).** Its two API calls (`/api/models` and `/api/session/update`) used root-absolute paths that broke behind a reverse proxy mounting the app under a subpath; they now resolve relative to `document.baseURI`, matching how the rest of the app builds API URLs. Thanks @tomtong2015.
|
||||
|
||||
## [v0.51.507] — 2026-06-19 — Release RR (jump-to-question button stays usable on mobile)
|
||||
|
||||
### Fixed
|
||||
|
||||
+2
-2
@@ -547,7 +547,7 @@ async function cmdModel(args){
|
||||
// CLI resolves against the full catalog, so /model must too. (#3368)
|
||||
let modelsData=null;
|
||||
try {
|
||||
const resp=await fetch('/api/models');
|
||||
const resp=await fetch(new URL('api/models',document.baseURI||location.href).href);
|
||||
if(resp.ok){
|
||||
modelsData=await resp.json();
|
||||
const aliases=modelsData.aliases||{};
|
||||
@@ -587,7 +587,7 @@ async function cmdModel(args){
|
||||
if(!match && !versionedNoSnap && S&&S.session&&S.session.session_id){
|
||||
const provider=q.slice(0,q.indexOf('/'));
|
||||
try{
|
||||
const resp=await fetch('/api/session/update',{
|
||||
const resp=await fetch(new URL('api/session/update',document.baseURI||location.href).href,{
|
||||
method:'POST',
|
||||
headers:{'Content-Type':'application/json'},
|
||||
body:JSON.stringify({
|
||||
|
||||
Reference in new issue
Block a user