Commit bec1b752 by e

fix: correct JSON tags for `Prompt` and `Suffix` in `GeneralOpenAIRequest`

parent cbca378e
...@@ -17,8 +17,8 @@ type FormatJsonSchema struct { ...@@ -17,8 +17,8 @@ type FormatJsonSchema struct {
type GeneralOpenAIRequest struct { 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:"suffix,omitempty"` Prompt any `json:"prompt,omitempty"`
Suffix any `json:"prompt,omitempty"` Suffix any `json:"suffix,omitempty"`
Stream bool `json:"stream,omitempty"` Stream bool `json:"stream,omitempty"`
StreamOptions *StreamOptions `json:"stream_options,omitempty"` StreamOptions *StreamOptions `json:"stream_options,omitempty"`
MaxTokens uint `json:"max_tokens,omitempty"` MaxTokens uint `json:"max_tokens,omitempty"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment