Skip to content

Commit

Permalink
进一步优化大模型服务的响应内容
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDai committed May 22, 2024
1 parent 3ecc016 commit 0db8224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/third-party/dashscope/dashscope.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (d *Dashscope) ProcessText(fromUserName, toUserName, content string) interf
Model: "qwen-turbo",
Input: Input{
Messages: []Message{
{Role: "system", Content: "你是一个AI助手,保持回复内容尽量简短"},
{Role: "system", Content: "你是一个AI助手,尽量保证回复内容在200个字符以内"},
{Role: "user", Content: content},
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/third-party/openai/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (openai *OpenAI) ProcessText(fromUserName, toUserName, content string) inte
request := openaigo.ChatCompletionRequestBody{
Model: "gpt-3.5-turbo",
Messages: []openaigo.ChatMessage{
{Role: "system", Content: "你是一个AI助手,保持回复内容尽量简短"},
{Role: "system", Content: "你是一个AI助手,尽量保证回复内容在200个字符以内"},
{Role: "user", Content: content},
},
}
Expand Down

0 comments on commit 0db8224

Please sign in to comment.