mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 22:10:12 +09:00
fix: fix completions role field
This commit is contained in:
parent
1b28b22fc3
commit
834ddc4163
@ -178,6 +178,7 @@ func getStreamTranshipmentForm(id string, created int64, form RelayForm, data *g
|
|||||||
{
|
{
|
||||||
Index: 0,
|
Index: 0,
|
||||||
Delta: Message{
|
Delta: Message{
|
||||||
|
Role: getRole(data),
|
||||||
Content: data.Content,
|
Content: data.Content,
|
||||||
ToolCalls: data.ToolCall,
|
ToolCalls: data.ToolCall,
|
||||||
FunctionCall: data.FunctionCall,
|
FunctionCall: data.FunctionCall,
|
||||||
|
Loading…
Reference in New Issue
Block a user