Skip to content

Commit

Permalink
data property
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert committed Dec 19, 2023
1 parent 56db78c commit 15f586d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ async function handler(req, env) {
{
api,
error: 'An error occurred while processing your request.',
completion: query.debug ? completion : undefined,
functions: query.debug ? functions : undefined,
inputMessages: query.debug ? [[messages]] : undefined,
data: query.debug
? {
completion,
functions,
inputMessages: [[messages]],
}
: undefined,
user,
},
500
Expand Down

0 comments on commit 15f586d

Please sign in to comment.