feat: support logprobs

This commit is contained in:
1808837298@qq.com 2024-02-22 17:52:03 +08:00
parent ba0c5bb4d9
commit 6fa1837c24

View File

@ -140,6 +140,8 @@ type GeneralOpenAIRequest struct {
Tools any `json:"tools,omitempty"`
ToolChoice any `json:"tool_choice,omitempty"`
User string `json:"user,omitempty"`
LogProbs bool `json:"logprobs,omitempty"`
TopLogProbs int `json:"top_logprobs,omitempty"`
}
func (r GeneralOpenAIRequest) ParseInput() []string {