Fix formatting
This commit is contained in:
parent
8c231b0826
commit
4982089c84
@ -80,22 +80,22 @@ type StreamOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ChatCompletionRequest struct {
|
type ChatCompletionRequest struct {
|
||||||
Model string `json:"model"`
|
Model string `json:"model"`
|
||||||
Messages []Message `json:"messages"`
|
Messages []Message `json:"messages"`
|
||||||
Stream bool `json:"stream"`
|
Stream bool `json:"stream"`
|
||||||
StreamOptions *StreamOptions `json:"stream_options"`
|
StreamOptions *StreamOptions `json:"stream_options"`
|
||||||
MaxCompletionTokens *int `json:"max_completion_tokens"`
|
MaxCompletionTokens *int `json:"max_completion_tokens"`
|
||||||
// Deprecated: Use [ChatCompletionRequest.MaxCompletionTokens]
|
// Deprecated: Use [ChatCompletionRequest.MaxCompletionTokens]
|
||||||
MaxTokens *int `json:"max_tokens" deprecated:"use max_completion_tokens instead"`
|
MaxTokens *int `json:"max_tokens" deprecated:"use max_completion_tokens instead"`
|
||||||
Seed *int `json:"seed"`
|
Seed *int `json:"seed"`
|
||||||
Stop any `json:"stop"`
|
Stop any `json:"stop"`
|
||||||
Temperature *float64 `json:"temperature"`
|
Temperature *float64 `json:"temperature"`
|
||||||
FrequencyPenalty *float64 `json:"frequency_penalty"`
|
FrequencyPenalty *float64 `json:"frequency_penalty"`
|
||||||
PresencePenalty *float64 `json:"presence_penalty"`
|
PresencePenalty *float64 `json:"presence_penalty"`
|
||||||
TopP *float64 `json:"top_p"`
|
TopP *float64 `json:"top_p"`
|
||||||
ResponseFormat *ResponseFormat `json:"response_format"`
|
ResponseFormat *ResponseFormat `json:"response_format"`
|
||||||
Tools []api.Tool `json:"tools"`
|
Tools []api.Tool `json:"tools"`
|
||||||
NumCtx *int `json:"num_ctx"`
|
NumCtx *int `json:"num_ctx"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChatCompletion struct {
|
type ChatCompletion struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user