Browse Source

chore: format code (feat-provider-model-routing-rules-5821b81)

github-actions[bot] 1 week ago
parent
commit
69dffeead2
1 changed files with 7 additions and 21 deletions
  1. 7 21
      tests/unit/proxy/proxy-forwarder-hedge-first-byte.test.ts

+ 7 - 21
tests/unit/proxy/proxy-forwarder-hedge-first-byte.test.ts

@@ -312,9 +312,7 @@ describe("ProxyForwarder - first-byte hedge scheduling", () => {
     const fireworks = createProvider({
       id: 383,
       name: "fireworks",
-      modelRedirects: [
-        { matchType: "exact", source: requestedModel, target: fireworksRedirect },
-      ],
+      modelRedirects: [{ matchType: "exact", source: requestedModel, target: fireworksRedirect }],
     });
     const minimax = createProvider({
       id: 206,
@@ -383,9 +381,7 @@ describe("ProxyForwarder - first-byte hedge scheduling", () => {
     const fireworks = createProvider({
       id: 383,
       name: "fireworks",
-      modelRedirects: [
-        { matchType: "exact", source: requestedModel, target: fireworksRedirect },
-      ],
+      modelRedirects: [{ matchType: "exact", source: requestedModel, target: fireworksRedirect }],
     });
     const fallback = createProvider({
       id: 206,
@@ -443,9 +439,7 @@ describe("ProxyForwarder - first-byte hedge scheduling", () => {
     const fireworks = createProvider({
       id: 383,
       name: "fireworks",
-      modelRedirects: [
-        { matchType: "exact", source: requestedModel, target: fireworksRedirect },
-      ],
+      modelRedirects: [{ matchType: "exact", source: requestedModel, target: fireworksRedirect }],
     });
     const plainProvider = createProvider({
       id: 520,
@@ -493,17 +487,13 @@ describe("ProxyForwarder - first-byte hedge scheduling", () => {
         id: 383,
         name: "fireworks",
         firstByteTimeoutStreamingMs: 100,
-        modelRedirects: [
-          { matchType: "exact", source: requestedModel, target: fireworksRedirect },
-        ],
+        modelRedirects: [{ matchType: "exact", source: requestedModel, target: fireworksRedirect }],
       });
       const minimax = createProvider({
         id: 206,
         name: "Minimax Max",
         firstByteTimeoutStreamingMs: 100,
-        modelRedirects: [
-          { matchType: "exact", source: requestedModel, target: minimaxRedirect },
-        ],
+        modelRedirects: [{ matchType: "exact", source: requestedModel, target: minimaxRedirect }],
       });
       const session = createSession();
       session.request.model = requestedModel;
@@ -593,17 +583,13 @@ describe("ProxyForwarder - first-byte hedge scheduling", () => {
         id: 383,
         name: "fireworks",
         firstByteTimeoutStreamingMs: 100,
-        modelRedirects: [
-          { matchType: "exact", source: requestedModel, target: fireworksRedirect },
-        ],
+        modelRedirects: [{ matchType: "exact", source: requestedModel, target: fireworksRedirect }],
       });
       const minimax = createProvider({
         id: 206,
         name: "Minimax Max",
         firstByteTimeoutStreamingMs: 100,
-        modelRedirects: [
-          { matchType: "exact", source: requestedModel, target: minimaxRedirect },
-        ],
+        modelRedirects: [{ matchType: "exact", source: requestedModel, target: minimaxRedirect }],
       });
       const session = createSession();
       session.request.model = requestedModel;