u
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user