mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
api should only return new msgs
This commit is contained in:
parent
3e67591367
commit
2a16a8ce31
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ export async function POST(
|
|||
} while (hasToolCalls);
|
||||
|
||||
const responseBody: z.infer<typeof ApiResponse> = {
|
||||
messages: currentMessages,
|
||||
messages: currentMessages.slice(reqMessages.length),
|
||||
state: currentState,
|
||||
};
|
||||
return Response.json(responseBody);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue