mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 21:10:18 +09:00
feat: hide role field on empty
This commit is contained in:
parent
a26a072a0e
commit
e2b10f9d77
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
Role string `json:"role"`
|
||||
Role string `json:"role,omitempty"`
|
||||
Content interface{} `json:"content"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
FunctionCall *globals.FunctionCall `json:"function_call,omitempty"` // only `function` role
|
||||
|
Loading…
Reference in New Issue
Block a user