Skip to content

Commit b89e8fc

Browse files
committed
Save message history in log of openrouter errors
1 parent c5d4d7f commit b89e8fc

File tree

1 file changed

+1
-0
lines changed
  • web/src/app/api/v1/chat/completions

1 file changed

+1
-0
lines changed

web/src/app/api/v1/chat/completions/_post.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ export async function postChatCompletions(params: {
364364
messageCount: Array.isArray((body as any)?.messages)
365365
? (body as any).messages.length
366366
: 0,
367+
messages: (body as any)?.messages,
367368
openrouterStatusCode: openrouterError?.statusCode,
368369
openrouterStatusText: openrouterError?.statusText,
369370
openrouterErrorCode: errorDetails?.error?.code,

0 commit comments

Comments
 (0)