mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
fix(SessionMessageService): stringify user message content to ensure proper formatting
This commit is contained in:
parent
7060aab33d
commit
92ba1e4fc3
@ -334,7 +334,7 @@ export class SessionMessageService extends BaseService {
|
|||||||
const insertData: InsertSessionMessageRow = {
|
const insertData: InsertSessionMessageRow = {
|
||||||
session_id: sessionId,
|
session_id: sessionId,
|
||||||
role: 'user',
|
role: 'user',
|
||||||
content: prompt,
|
content: JSON.stringify({ role: 'user', content: prompt }),
|
||||||
agent_session_id: agentSessionId,
|
agent_session_id: agentSessionId,
|
||||||
created_at: now,
|
created_at: now,
|
||||||
updated_at: now
|
updated_at: now
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user