fix(api): route each session_id to its own chat
Derive the request chat route from the existing API session key for both JSON responses and SSE. Keep JSON identity conversion, multipart trimming, the shared default session and persisted history unchanged. Exercise concurrent HTTP/SSE requests through the real agent runtime, tools and storage with an offline model. Verify old-history replay, restart, rollback, session ordering and stable model-request prefixes. Refs HKUDS/nanobot#5798
This commit is contained in:
1 parent
67f6a0d26e
commit
0e0df327c8
6 files changed
+252
-9
No files matched your search
@@ -57,7 +57,7 @@ curl http://127.0.0.1:8900/v1/chat/completions \
|
||||
|
||||
- If `/v1/chat/completions` fails, test `nanobot agent -m "Hello!"` first.
|
||||
- If remote clients cannot connect, check `api.host`, `api.port`, firewall, and API key configuration.
|
||||
- If sessions mix together, pass unique `session_id` values.
|
||||
- If sessions mix together, pass a distinct, stable `session_id` for each conversation. Requests without `session_id` all share the `api:default` session. See [session behavior](../openai-api.md#sessions-failures-and-retries) before changing existing IDs.
|
||||
|
||||
## Related nanobot docs
|
||||
|
||||
|
||||
Reference in new issue
Block a user