diff --git a/backend/api/model/conversation/message/message.go b/backend/api/model/conversation/message/message.go index 163b8b59..04759f1b 100644 --- a/backend/api/model/conversation/message/message.go +++ b/backend/api/model/conversation/message/message.go @@ -6837,7 +6837,7 @@ type OpenMessageApi struct { //message content Content string `thrift:"content,4" form:"content" json:"content" query:"content"` //session id - ConversationID int64 `thrift:"conversation_id,5" form:"conversation_id" json:"conversation_id" query:"conversation_id"` + ConversationID int64 `thrift:"conversation_id,5" form:"conversation_id" json:"conversation_id,string" query:"conversation_id"` // custom field MetaData map[string]string `thrift:"meta_data,6" form:"meta_data" json:"meta_data" query:"meta_data"` //creation time @@ -6845,7 +6845,7 @@ type OpenMessageApi struct { //update time UpdatedAt int64 `thrift:"updated_at,8" form:"updated_at" json:"updated_at" query:"updated_at"` // ID of a conversation - ChatID int64 `thrift:"chat_id,9" form:"chat_id" json:"chat_id" query:"chat_id"` + ChatID int64 `thrift:"chat_id,9" form:"chat_id" json:"chat_id,string" query:"chat_id"` // Content type, text/mix ContentType string `thrift:"content_type,10" form:"content_type" json:"content_type" query:"content_type"` //Message Type answer/question/function_call/tool_response diff --git a/idl/conversation/message.thrift b/idl/conversation/message.thrift index 2a186aea..79b06a6e 100644 --- a/idl/conversation/message.thrift +++ b/idl/conversation/message.thrift @@ -197,11 +197,11 @@ struct OpenMessageApi { 2: i64 bot_id (api.js_conv='true') // agent id 3: string role // user / assistant/tool 4: string content //message content - 5: i64 conversation_id //session id + 5: i64 conversation_id (api.js_conv='true')//session id 6: map meta_data // custom field 7: i64 created_at //creation time 8: i64 updated_at //update time - 9: i64 chat_id // ID of a conversation + 9: i64 chat_id (api.js_conv='true')// ID of a conversation 10: string content_type // Content type, text/mix 11: string type //Message Type answer/question/function_call/tool_response 12: string section_id // The section_id of conversation