Chat
Insert a synthetic user-question + AI-reply pair into chat history.
Used by slash-command flows (e.g. /schedule, /create-assistant) that produce an LLM response outside the normal streaming pipeline and need the resulting prompt/response pair to show up in the chat history on reload. The pair is tagged with chat_message_meta(message_type="command_synth", content=command_name) so UIs can identify these turns later.
post/chats/{session_id}/synth_message_pair
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
session_idstring required
Id of the chat session to attach the pair to.
Request body
Response
Pair inserted.
Changes
No recorded changes to this operation across all 1 revision of this API.