Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionChunkResponse ¶
type ChatCompletionChunkResponse struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` SystemFingerprint string `json:"system_fingerprint"` Choices []ChatCompletionChunkResponseChoice `json:"choices"` XGroq struct { ID string `json:"id"` Usage ChatCompletionChunkResponseUsage `json:"usage,omitempty"` } `json:"x_groq"` }
type ChatCompletionChunkResponseChoice ¶
type ChatCompletionChunkResponseChoice struct { Index int `json:"index"` Delta ChatCompletionChunkResponseDelta Logprobs interface{} `json:"logprobs"` // Assuming logprobs can be null FinishReason interface{} `json:"finish_reason"` }
type ChatCompletionChunkResponseUsage ¶
type ChatCompletionChunkResponseUsage struct { QueueTime float64 `json:"queue_time"` PromptTokens int `json:"prompt_tokens"` PromptTime float64 `json:"prompt_time"` CompletionTokens int `json:"completion_tokens"` CompletionTime float64 `json:"completion_time"` TotalTokens int `json:"total_tokens"` TotalTime float64 `json:"total_time"` }
type ChatCompletionDone ¶
type ChatCompletionDone struct {
Done []string
}
type ChatCompletionResponse ¶
type ChatCompletionResponse struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []struct { Index int `json:"index"` Message struct { Role string `json:"role"` Content string `json:"content"` } `json:"message"` Logprobs interface{} `json:"logprobs"` // Assuming logprobs can be null FinishReason string `json:"finish_reason"` } `json:"choices"` Usage struct { PromptTokens int `json:"prompt_tokens"` PromptTime float64 `json:"prompt_time"` CompletionTokens int `json:"completion_tokens"` CompletionTime float64 `json:"completion_time"` TotalTokens int `json:"total_tokens"` TotalTime float64 `json:"total_time"` } `json:"usage"` SystemFingerprint string `json:"system_fingerprint"` XGroq struct { ID string `json:"id"` } `json:"x_groq"` }
type ErrorResponse ¶
type StreamedResponse ¶
type StreamedResponse struct {
Data string `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.