|
|
|
|
@ -29,15 +29,15 @@ type Message struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ChatRequest struct {
|
|
|
|
|
Stream bool `json:"stream,omitempty"`
|
|
|
|
|
Model string `json:"model,omitempty"`
|
|
|
|
|
PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
|
|
|
|
Temperature float64 `json:"temperature,omitempty"`
|
|
|
|
|
Messages []Message `json:"messages,omitempty"`
|
|
|
|
|
Prompt string `json:"prompt,omitempty"`
|
|
|
|
|
Input string `json:"input,omitempty"`
|
|
|
|
|
Instruction string `json:"instruction,omitempty"`
|
|
|
|
|
N int `json:"n,omitempty"`
|
|
|
|
|
Stream bool `json:"stream,omitempty"`
|
|
|
|
|
Model string `json:"model,omitempty"`
|
|
|
|
|
PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
|
|
|
|
Temperature float64 `json:"temperature,omitempty"`
|
|
|
|
|
Messages []Message `json:"messages,omitempty"`
|
|
|
|
|
Prompt string `json:"prompt,omitempty"`
|
|
|
|
|
Input interface{} `json:"input,omitempty"`
|
|
|
|
|
Instruction string `json:"instruction,omitempty"`
|
|
|
|
|
N int `json:"n,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ImagesRequest struct {
|
|
|
|
|
|