Spaces:
Paused

Farhan Beg commited on
Commit
ff3dadd
·
1 Parent(s): 8da84d4

fix(router): explicit 404 for legacy /api/sessions/<id>/chat/stream

Browse files

The hermes-workspace capability probe POSTs to that path to detect the
legacy enhanced-fork chat surface. With no rule it fell through to
WebUI, which didn't 404 it cleanly, so the probe set enhancedChat=true,
the workspace then sent chat there at runtime, and the UI showed a
generic 'Authentication error' instead of using /v1/chat/completions.

Returning an explicit 404 makes the workspace's chatMode resolve to
'portable' and route chat through the OpenAI-compat path the Space
actually exposes.

1 file changed +30
health-server.js+30