mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +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 = {
|
||||
session_id: sessionId,
|
||||
role: 'user',
|
||||
content: prompt,
|
||||
content: JSON.stringify({ role: 'user', content: prompt }),
|
||||
agent_session_id: agentSessionId,
|
||||
created_at: now,
|
||||
updated_at: now
|
||||
|
||||
Loading…
Reference in New Issue
Block a user