Set Process Conversation Model

Changed on

Persist the per-conversation model choice so it survives reload and syncs across devices. Upserts ONLY the provider/model columns on the conversation cache row — every other column (history/meta/route/…) is untouched, so a concurrent core→cache trajectory sync won't clobber the model and this PUT won't clobber history. If the row doesn't exist yet (model picked before the first trajectory sync created it), a minimal row is inserted; the later sync fills in the rest via its own upsert, which deliberately omits these two columns.

put/api/processes/{process_id}/conversations/{session_id}/model

Request

  • Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
  • URL: https://api.omicos.cn/api/processes/{process_id}/conversations/{session_id}/model
  • Auth: none declared

Path parameters

process_idstring required
session_idstring required

Headers

authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable

Request body

providerstring
modelstring

Response

Successful Response

object required

Changes

    • info

      added the new optional header request parameter x-omicos-device

    • info

      added the new optional header request parameter x-omicos-device-kind

    • info

      added the new optional header request parameter x-omicos-device-name