Get a session's model
The model the session's next turn uses (feature session-model): its own (source: "session") while its provider is connected, else the Tenant's (source: "tenant"). choice is the session's own model, kept while its provider is disconnected.
AuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
sessionId*stringNylorun-Protocol*stringThe protocol version, 18
Nylorun-Subject?stringThe person an application key acts for
Nylorun-Scopes?stringThe subject's space-separated scopes; required with a subject
The session's model
application/json- response
configured*falsefalsechoice?curl -X GET "https://example.com/v1/sessions/string/model" \ -H "Nylorun-Protocol: string"{ "configured": false, "choice": { "provider": "string", "model": "string" }}Read the session's pinned manifest GET
Previous Page
Choose a session's model PUT
Chooses one of a connected provider's models for the session's turns (feature `session-model`), in place of the Tenant's model. The Tenant's model and every other session's stay as they are. Only the application sets it, for itself or for a subject: a trusted issuer's token is refused. A turn calls one model, so the choice changes only while no turn runs or waits (`409 session_busy`). A provider that is not connected, or a model its catalog does not list, is `422 request_rejected`.