nsmcp::ChatCompletionsBackend method streamHeaders (public)
<instance of nsmcp::ChatCompletionsBackend> streamHeaders key \ fields
Defined in /usr/local/ns/tcl/nsmcp/question-chat-completions.tcl
Record streamed HTTP response headers. Update status and content type under the shared response-buffer mutex while the stream remains active.
- Parameters:
- key (required)
- Retained stream or configuration key.
- fields (required)
- HTTP callback dictionary containing response status and headers.
- Returns:
- The callback update result.
- Testcases:
- No testcase defined.
![[i]](/resources/acs-subsite/ZoomIn16.gif)