fix: chatgptweb

This commit is contained in:
ckt1031 2023-07-16 21:48:54 +08:00
parent 617149d731
commit a6ae20ed54

View File

@ -224,7 +224,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
// Construct json data without adding escape character // Construct json data without adding escape character
map1 := make(map[string]interface{}) map1 := make(map[string]interface{})
map1["prompt"] = prompt map1["prompt"] = prompt + "\nResponse as assistant, but do not include the role in response."
map1["systemMessage"] = systemMessage.Content map1["systemMessage"] = systemMessage.Content
if reqBody.Temperature != 0 { if reqBody.Temperature != 0 {