MCPcopy Create free account
hub / github.com/coderabbit214/document-ai / ChatCompletionResponse

Struct ChatCompletionResponse

pkg/openai/chat.go:52–59  ·  view source on GitHub ↗

ChatCompletionResponse represents a response structure for chat completion API.

Source from the content-addressed store, hash-verified

50
51// ChatCompletionResponse represents a response structure for chat completion API.
52type ChatCompletionResponse struct {
53 ID string `json:"id"`
54 Object string `json:"object"`
55 Created int64 `json:"created"`
56 Model string `json:"model"`
57 Choices []ChatCompletionChoice `json:"choices"`
58 Usage Usage `json:"usage"`
59}
60
61type ChatCompletionChoice struct {
62 Index int `json:"index"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected