openai-go
openai-go copied to clipboard
Reasoning content for ChatCompletionChunkChoiceDelta
Added the reasoning content field for the ChatCompletionChunkChoiceDelta:
// A chat completion delta generated by streamed model responses.
type ChatCompletionChunkChoiceDelta struct {
...
ReasoningContent string `json:"reasoning_content,nullable"`
...
}
It is present in the json body of SSE events when streaming is enabled. This is true for the vLLM openai-compatible api at least, so it would be nice to have it here as well.