diff --git a/open-sse/handlers/search.ts b/open-sse/handlers/search.ts index bad08b9998..bb5fce6ea9 100644 --- a/open-sse/handlers/search.ts +++ b/open-sse/handlers/search.ts @@ -304,7 +304,7 @@ function buildSerperRequest( url: `${config.baseUrl}${endpoint}`, init: { method: "POST", - headers: { "Content-Type": "application/json", "X-API-Key": params.token }, + headers: { "Content-Type": "application/json", "X-API-Key": params.token ?? "" }, body: JSON.stringify(body), }, };