mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 17:13:43 +08:00
fix: 请求阿里通义千问异常 (close #108)
This commit is contained in:
@@ -6,8 +6,9 @@ type AliMessage struct {
|
||||
}
|
||||
|
||||
type AliInput struct {
|
||||
Prompt string `json:"prompt"`
|
||||
History []AliMessage `json:"history"`
|
||||
Prompt string `json:"prompt,omitempty"`
|
||||
//History []AliMessage `json:"history,omitempty"`
|
||||
Messages []AliMessage `json:"messages"`
|
||||
}
|
||||
|
||||
type AliParameters struct {
|
||||
@@ -20,7 +21,7 @@ type AliParameters struct {
|
||||
|
||||
type AliChatRequest struct {
|
||||
Model string `json:"model"`
|
||||
Input AliInput `json:"input"`
|
||||
Input AliInput `json:"input,omitempty"`
|
||||
Parameters AliParameters `json:"parameters,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user