Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jyx04 authored Jun 12, 2024
1 parent 318c47b commit ef89a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ if (cookies) {

if (apiKey) {
if (url.pathname === "/backend-api/conversation") {
const requestBody = await newRequest.json();
const requestBody = await request.json();
const userMessages = requestBody.messages
.filter(
(msg) =>
Expand Down Expand Up @@ -276,7 +276,7 @@ if (cookies) {
const newnewRequest = new Request(url, {
body: JSON.stringify(requestBody),
method: request.method,
headers: newHeaders,
headers: request.headers,
});
return fetch(newnewRequest);
}
Expand Down

0 comments on commit ef89a97

Please sign in to comment.