This commit is contained in:
seb
2026-10-06 00:27:26 +02:00
parent 609ca55af2
commit 87f9a8d97e
2 changed files with 29 additions and 6 deletions

View File

@@ -557,7 +557,7 @@ export function register(app, basePath = '') {
return res.status(400).json({ error: parsedId.error });
}
const { message, tool_call_id, role, content, answer } = req.body ?? {};
const { message, tool_call_id, role, content, answer, name } = req.body ?? {};
try {
const manager = getOrCreateManager(parsedId.id, {
@@ -574,6 +574,7 @@ export function register(app, basePath = '') {
tool_call_id,
content,
answer: answer !== undefined ? answer : message,
name,
});
} else {
if (!message) {