File tree Expand file tree Collapse file tree
packages/workers-ai-provider/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ describe("mapWorkersAIUsage", () => {
7878 completion_tokens : 349 ,
7979 prompt_tokens_details : { cached_tokens : 2861 } ,
8080 } ,
81- } as any ) ;
81+ } ) ;
8282
8383 expect ( result . inputTokens . cacheRead ) . toBe ( 2861 ) ;
8484 expect ( result . inputTokens . noCache ) . toBe ( 6377 - 2861 ) ;
@@ -92,7 +92,7 @@ describe("mapWorkersAIUsage", () => {
9292 completion_tokens : 50 ,
9393 prompt_tokens_details : { cached_tokens : 0 } ,
9494 } ,
95- } as any ) ;
95+ } ) ;
9696
9797 expect ( result . inputTokens . cacheRead ) . toBe ( 0 ) ;
9898 expect ( result . inputTokens . noCache ) . toBe ( 100 - 0 ) ;
@@ -105,7 +105,7 @@ describe("mapWorkersAIUsage", () => {
105105 completion_tokens : 50 ,
106106 prompt_tokens_details : { } ,
107107 } ,
108- } as any ) ;
108+ } ) ;
109109
110110 expect ( result . inputTokens . cacheRead ) . toBeUndefined ( ) ;
111111 expect ( result . inputTokens . noCache ) . toBeUndefined ( ) ;
@@ -118,7 +118,7 @@ describe("mapWorkersAIUsage", () => {
118118 completion_tokens : 200 ,
119119 prompt_tokens_details : { cached_tokens : 800 } ,
120120 } ,
121- } as any ) ;
121+ } ) ;
122122
123123 expect ( result . raw ) . toEqual ( { total : 1000 + 200 } ) ;
124124 } ) ;
You can’t perform that action at this time.
0 commit comments