Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkAudioDelta ¶
type ChunkAudioDone ¶
type ChunkTypeAudioDelta ¶
type ChunkTypeAudioDelta string
func (*ChunkTypeAudioDelta) MarshalJSON ¶
func (m *ChunkTypeAudioDelta) MarshalJSON() ([]byte, error)
func (*ChunkTypeAudioDelta) UnmarshalJSON ¶
func (m *ChunkTypeAudioDelta) UnmarshalJSON(buf []byte) error
func (*ChunkTypeAudioDelta) Value ¶
func (m *ChunkTypeAudioDelta) Value() string
type ChunkTypeAudioDone ¶
type ChunkTypeAudioDone string
func (*ChunkTypeAudioDone) MarshalJSON ¶
func (m *ChunkTypeAudioDone) MarshalJSON() ([]byte, error)
func (*ChunkTypeAudioDone) UnmarshalJSON ¶
func (m *ChunkTypeAudioDone) UnmarshalJSON(buf []byte) error
func (*ChunkTypeAudioDone) Value ¶
func (m *ChunkTypeAudioDone) Value() string
type Request ¶
type Request struct {
Input string `json:"input"`
Model string `json:"model"`
Voice string `json:"voice"`
Instruction *string `json:"instruction,omitempty"`
ResponseFormat *string `json:"response_format,omitempty"`
Speed *int `json:"speed,omitempty"`
StreamFormat *string `json:"stream_format,omitempty"`
}
func (*Request) IsStreamingRequest ¶
type ResponseChunk ¶
type ResponseChunk struct {
OfAudioDelta *ChunkAudioDelta[ChunkTypeAudioDelta] `json:",omitempty"`
OfAudioDone *ChunkAudioDone[ChunkTypeAudioDone] `json:",omitempty"`
}
type StringConstant ¶
type StringConstant interface {
Value() string
}
type Usage ¶
type Usage struct {
InputTokens int `json:"input_tokens"`
InputTokensDetails struct {
CachedTokens int `json:"cached_tokens"`
} `json:"input_tokens_details"`
OutputTokens int `json:"output_tokens"`
OutputTokensDetails struct {
ReasoningTokens int `json:"reasoning_tokens"`
} `json:"output_tokens_details"`
TotalTokens int `json:"total_tokens"`
}
Click to show internal directories.
Click to hide internal directories.