mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-22 02:06:38 +08:00
fix req model
Signed-off-by: wozulong <>
This commit is contained in:
parent
daa1741aed
commit
cc020d6a40
@ -10,11 +10,11 @@ type GeneralOpenAIRequest struct {
|
|||||||
Model string `json:"model,omitempty"`
|
Model string `json:"model,omitempty"`
|
||||||
Messages []Message `json:"messages,omitempty"`
|
Messages []Message `json:"messages,omitempty"`
|
||||||
Prompt any `json:"prompt,omitempty"`
|
Prompt any `json:"prompt,omitempty"`
|
||||||
BestOf int `json:"best_of"`
|
BestOf int `json:"best_of,omitempty"`
|
||||||
Echo bool `json:"echo"`
|
Echo bool `json:"echo,omitempty"`
|
||||||
Stream bool `json:"stream,omitempty"`
|
Stream bool `json:"stream,omitempty"`
|
||||||
StreamOptions any `json:"stream_options"`
|
StreamOptions any `json:"stream_options,omitempty"`
|
||||||
Suffix string `json:"suffix"`
|
Suffix string `json:"suffix,omitempty"`
|
||||||
MaxTokens uint `json:"max_tokens,omitempty"`
|
MaxTokens uint `json:"max_tokens,omitempty"`
|
||||||
Temperature float64 `json:"temperature,omitempty"`
|
Temperature float64 `json:"temperature,omitempty"`
|
||||||
TopP float64 `json:"top_p,omitempty"`
|
TopP float64 `json:"top_p,omitempty"`
|
||||||
@ -32,7 +32,7 @@ type GeneralOpenAIRequest struct {
|
|||||||
Tools any `json:"tools,omitempty"`
|
Tools any `json:"tools,omitempty"`
|
||||||
ToolChoice any `json:"tool_choice,omitempty"`
|
ToolChoice any `json:"tool_choice,omitempty"`
|
||||||
User string `json:"user,omitempty"`
|
User string `json:"user,omitempty"`
|
||||||
LogitBias any `json:"logit_bias"`
|
LogitBias any `json:"logit_bias,omitempty"`
|
||||||
LogProbs any `json:"logprobs,omitempty"`
|
LogProbs any `json:"logprobs,omitempty"`
|
||||||
TopLogProbs int `json:"top_logprobs,omitempty"`
|
TopLogProbs int `json:"top_logprobs,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user