Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatChoice ¶
type ChatChoice struct {
Index int `json:"index"`
Message ChatMessage `json:"message"`
FinishReason string `json:"finish_reason"`
}
type ChatMessage ¶
type ChatRequest ¶
type ChatResponse ¶
type ChatStreamResponse ¶
type ChatStreamResponse struct {
ID string `json:"id"`
Object string `json:"object"`
Created int64 `json:"created"`
Model string `json:"model"`
Choices []StreamChoice `json:"choices"`
}
type ContentBlock ¶
type ResponseItem ¶
type ResponsesRequest ¶
type ResponsesRequest struct {
Model string `json:"model"`
Input any `json:"input,omitempty"`
Instructions string `json:"instructions,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
Store bool `json:"store,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
TopP float64 `json:"top_p,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
PreviousResponseID string `json:"previous_response_id,omitempty"`
Stream bool `json:"stream,omitempty"`
}
type ResponsesResponse ¶
type StreamChoice ¶
type StreamChoice struct {
Index int `json:"index"`
Delta ChatMessage `json:"delta"`
FinishReason string `json:"finish_reason"`
}
Click to show internal directories.
Click to hide internal directories.