fix: fix completions role field

This commit is contained in:
Zhang Minghan 2024-03-10 17:46:36 +08:00
parent 1b28b22fc3
commit 834ddc4163

View File

@ -178,6 +178,7 @@ func getStreamTranshipmentForm(id string, created int64, form RelayForm, data *g
{
Index: 0,
Delta: Message{
Role: getRole(data),
Content: data.Content,
ToolCalls: data.ToolCall,
FunctionCall: data.FunctionCall,