浏览代码

fix: ts error

Meaqua 1 年之前
父节点
当前提交
8ac9141a29
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/anthropic.ts

+ 1 - 1
app/api/anthropic.ts

@@ -98,7 +98,7 @@ async function request(req: NextRequest) {
     headers: {
       "Content-Type": "application/json",
       "Cache-Control": "no-store",
-      "anthropic-dangerous-direct-browser-access": true,
+      "anthropic-dangerous-direct-browser-access": "true",
       [authHeaderName]: authValue,
       "anthropic-version":
         req.headers.get("anthropic-version") ||