Extract a ModelRequest from a request body — the system prompt and messages, each flattened to text. Pure and exported so the capture logic is testable without the HTTP server.
system
messages
Extract a ModelRequest from a request body — the
systemprompt andmessages, each flattened to text. Pure and exported so the capture logic is testable without the HTTP server.