Documentation
¶
Index ¶
Constants ¶
View Source
const ApiKeySuffic = "CEREBRAS_API_KEY"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(sd *ty.ShutdownContext, secr *secr.Client) *Service
type StreamResponse ¶
type StreamResponse struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []struct { Delta struct { Content string `json:"content"` } `json:"delta"` Index int `json:"index"` FinishReason string `json:"finish_reason"` } `json:"choices"` Usage struct { PromptTokens int `json:"prompt_tokens"` CompletionTokens int `json:"completion_tokens"` TotalTokens int `json:"total_tokens"` } `json:"usage"` }
Click to show internal directories.
Click to hide internal directories.