opencode-agent[bot] 4 месяцев назад
Родитель
Сommit
837cc92586
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      packages/opencode/test/provider/cf-ai-gateway-e2e.test.ts

+ 2 - 6
packages/opencode/test/provider/cf-ai-gateway-e2e.test.ts

@@ -27,12 +27,8 @@ function isRecord(value: unknown): value is Record<string, unknown> {
 
 
 beforeEach(() => {
 beforeEach(() => {
   captured = null
   captured = null
-  const handle = async (
-    input: Parameters<typeof fetch>[0],
-    init?: Parameters<typeof fetch>[1],
-  ): Promise<Response> => {
-    const url =
-      typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url
+  const handle = async (input: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1]): Promise<Response> => {
+    const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url
     if (url.startsWith("https://gateway.ai.cloudflare.com/")) {
     if (url.startsWith("https://gateway.ai.cloudflare.com/")) {
       const bodyText = typeof init?.body === "string" ? init.body : ""
       const bodyText = typeof init?.body === "string" ? init.body : ""
       captured = { url, outerBody: bodyText ? JSON.parse(bodyText) : null }
       captured = { url, outerBody: bodyText ? JSON.parse(bodyText) : null }