ChatCompletionResponse represents a response structure for chat completion API.
| 50 | |
| 51 | // ChatCompletionResponse represents a response structure for chat completion API. |
| 52 | type 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 | |
| 61 | type ChatCompletionChoice struct { |
| 62 | Index int `json:"index"` |
nothing calls this directly
no outgoing calls
no test coverage detected