mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
24 lines
800 B
Go
24 lines
800 B
Go
package model
|
|
|
|
type GptMessage struct {
|
|
Content string `json:"content"`
|
|
Role string `json:"role"`
|
|
Unimportant bool `json:"unimportant"`
|
|
}
|
|
|
|
type GptResponseFormat struct {
|
|
Type string `json:"type"`
|
|
}
|
|
type GPTRequest struct {
|
|
Messages []GptMessage `json:"messages"`
|
|
Model string `json:"model"`
|
|
FrequencyPenalty float64 `json:"frequency_penalty"`
|
|
MaxTokens int `json:"max_tokens"`
|
|
PresencePenalty float64 `json:"presence_penalty"`
|
|
ResponseFormat GptResponseFormat `json:"response_format"`
|
|
Stop interface{} `json:"stop"`
|
|
Stream bool `json:"stream"`
|
|
Temperature float64 `json:"temperature"`
|
|
TopP float64 `json:"top_p"`
|
|
}
|