Преглед изворни кода

chore: format code (feat-multi-improvements-batch-319883c)

github-actions[bot] пре 3 недеља
родитељ
комит
3cdec3f2c0

+ 1 - 3
src/app/v1/_lib/proxy/thinking-signature-rectifier.test.ts

@@ -85,9 +85,7 @@ describe("thinking-signature-rectifier", () => {
 
       // 大小写混合
       expect(
-        detectThinkingSignatureRectifierTrigger(
-          "Signature: EXTRA INPUTS ARE NOT PERMITTED"
-        )
+        detectThinkingSignatureRectifierTrigger("Signature: EXTRA INPUTS ARE NOT PERMITTED")
       ).toBe("invalid_signature_in_thinking_block");
     });
   });

+ 5 - 9
tests/unit/proxy/proxy-forwarder-thinking-signature-rectifier.test.ts

@@ -402,15 +402,11 @@ describe("ProxyForwarder - thinking signature rectifier", () => {
     const doForward = vi.spyOn(ProxyForwarder as any, "doForward");
 
     doForward.mockImplementationOnce(async () => {
-      throw new ProxyError(
-        "content.1.tool_use.signature: Extra inputs are not permitted",
-        400,
-        {
-          body: "",
-          providerId: 1,
-          providerName: "anthropic-1",
-        }
-      );
+      throw new ProxyError("content.1.tool_use.signature: Extra inputs are not permitted", 400, {
+        body: "",
+        providerId: 1,
+        providerName: "anthropic-1",
+      });
     });
 
     doForward.mockImplementationOnce(async (s: ProxySession) => {