Skip to content

Commit

Permalink
UPDATE free
Browse files Browse the repository at this point in the history
  • Loading branch information
Vauth authored Sep 4, 2024
1 parent 46880b7 commit 763e15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function handleRequest(request) {
let prompt = url.searchParams.get('prompt');
let history = url.searchParams.get('history') || '[]';
let model = url.searchParams.get('model') || 'gpt-4o-mini';
let headers = { 'content-type': 'application/json', 'Access-Control-Allow-Origin': url.origin}
let headers = { 'content-type': 'application/json', 'Access-Control-Allow-Origin': "*"}

if (!prompt || request.method !== "GET" || url.pathname !== "/chat/") {
return new Response(await Raise(), {status: 400, headers: headers});
Expand Down

0 comments on commit 763e15b

Please sign in to comment.