@@ -92,7 +92,7 @@ describe("Pass-Through Tests", () => {
9292 expects : {
9393 headers : {
9494 // Without NO_MAPPING, Anthropic uses OpenAI compatibility mode with Authorization header
95- " Authorization" : / ^ B e a r e r / ,
95+ Authorization : / ^ B e a r e r / ,
9696 } ,
9797 } ,
9898 } ,
@@ -315,7 +315,8 @@ describe("Pass-Through Tests", () => {
315315
316316 it ( "should route to Bedrock endpoint with ap-southeast prefix" , ( ) =>
317317 runGatewayTest ( {
318- model : "ap-southeast-2.anthropic.claude-3-7-sonnet-20250219-v1:0/bedrock" ,
318+ model :
319+ "ap-southeast-2.anthropic.claude-3-7-sonnet-20250219-v1:0/bedrock" ,
319320 request : {
320321 messages : [ { role : "user" , content : "Test APAC Bedrock" } ] ,
321322 maxTokens : 100 ,
@@ -326,7 +327,8 @@ describe("Pass-Through Tests", () => {
326327 // Note: AP prefix in model doesn't change the region, still uses us-east-1
327328 url : "https://bedrock-runtime.us-east-1.amazonaws.com/model/ap-southeast-2.anthropic.claude-3-7-sonnet-20250219-v1:0/invoke" ,
328329 response : "success" ,
329- model : "ap-southeast-2.anthropic.claude-3-7-sonnet-20250219-v1:0" ,
330+ model :
331+ "ap-southeast-2.anthropic.claude-3-7-sonnet-20250219-v1:0" ,
330332 data : {
331333 id : "msg_bedrock_apac" ,
332334 type : "message" ,
@@ -350,7 +352,8 @@ describe("Pass-Through Tests", () => {
350352 describe ( "Mixed provider fallback scenarios" , ( ) => {
351353 it ( "should fallback from Groq to OpenAI to Anthropic" , ( ) =>
352354 runGatewayTest ( {
353- model : "llama-3.3-70b-versatile/groq,gpt-4-turbo/openai,claude-3-7-sonnet-20250219/anthropic" ,
355+ model :
356+ "llama-3.3-70b-versatile/groq,gpt-4-turbo/openai,claude-3-7-sonnet-20250219/anthropic" ,
354357 request : {
355358 messages : [ { role : "user" , content : "Test triple fallback" } ] ,
356359 maxTokens : 100 ,
@@ -387,7 +390,7 @@ describe("Pass-Through Tests", () => {
387390 expects : {
388391 headers : {
389392 // Without NO_MAPPING, Anthropic uses OpenAI compatibility mode with Authorization header
390- " Authorization" : / ^ B e a r e r / ,
393+ Authorization : / ^ B e a r e r / ,
391394 } ,
392395 } ,
393396 } ,
@@ -422,7 +425,9 @@ describe("Pass-Through Tests", () => {
422425 id : "msg_no_mapping_fallback" ,
423426 type : "message" ,
424427 role : "assistant" ,
425- content : [ { type : "text" , text : "NO_MAPPING fallback response" } ] ,
428+ content : [
429+ { type : "text" , text : "NO_MAPPING fallback response" } ,
430+ ] ,
426431 model : "claude-3-7-sonnet-20250219" ,
427432 usage : { input_tokens : 10 , output_tokens : 5 } ,
428433 } ,
0 commit comments