@@ -725,8 +725,8 @@ describe("ProviderTransform.schema - gemini non-object properties removal", () =
725725
726726describe ( "ProviderTransform.message - DeepSeek reasoning content" , ( ) => {
727727 const deepseek = {
728- id : "deepseek/deepseek-chat" ,
729- providerID : "deepseek" ,
728+ id : ModelID . make ( "deepseek/deepseek-chat" ) ,
729+ providerID : ProviderID . make ( "deepseek" ) ,
730730 api : {
731731 id : "deepseek-chat" ,
732732 url : "https://api.deepseek.com" ,
@@ -760,8 +760,8 @@ describe("ProviderTransform.message - DeepSeek reasoning content", () => {
760760 } satisfies Provider . Model
761761
762762 const openai = {
763- id : "openai/gpt-4" ,
764- providerID : "openai" ,
763+ id : ModelID . make ( "openai/gpt-4" ) ,
764+ providerID : ProviderID . make ( "openai" ) ,
765765 api : {
766766 id : "gpt-4" ,
767767 url : "https://api.openai.com" ,
@@ -793,8 +793,8 @@ describe("ProviderTransform.message - DeepSeek reasoning content", () => {
793793 } satisfies Provider . Model
794794
795795 const dax = {
796- id : "dax/mistral-medium-latest" ,
797- providerID : "dax" ,
796+ id : ModelID . make ( "dax/mistral-medium-latest" ) ,
797+ providerID : ProviderID . make ( "dax" ) ,
798798 api : {
799799 id : "mistral-medium-latest" ,
800800 url : "https://dax.example/v1" ,
@@ -826,8 +826,8 @@ describe("ProviderTransform.message - DeepSeek reasoning content", () => {
826826 } satisfies Provider . Model
827827
828828 const anthropic = {
829- id : "anthropic/claude-opus-4-5" ,
830- providerID : "anthropic" ,
829+ id : ModelID . make ( "anthropic/claude-opus-4-5" ) ,
830+ providerID : ProviderID . make ( "anthropic" ) ,
831831 api : {
832832 id : "claude-opus-4-5" ,
833833 url : "https://api.anthropic.com" ,
@@ -1048,8 +1048,8 @@ describe("ProviderTransform.message - DeepSeek reasoning content", () => {
10481048describe ( "ProviderTransform.options - capability filtering" , ( ) => {
10491049 test ( "removes reasoning defaults for models without reasoning support" , ( ) => {
10501050 const model = {
1051- id : "openai/gpt-5-proxy" ,
1052- providerID : "openai" ,
1051+ id : ModelID . make ( "openai/gpt-5-proxy" ) ,
1052+ providerID : ProviderID . make ( "openai" ) ,
10531053 api : {
10541054 id : "gpt-5.2" ,
10551055 url : "https://api.openai.com/v1" ,
@@ -1358,7 +1358,7 @@ describe("ProviderTransform.message - anthropic empty content filtering", () =>
13581358 } ,
13591359 ] as any [ ]
13601360
1361- const result = ProviderTransform . message ( msgs , bedrockModel , { } )
1361+ const result = ProviderTransform . message ( msgs , bedrockModel )
13621362
13631363 expect ( result ) . toHaveLength ( 2 )
13641364 expect ( result [ 0 ] . content ) . toBe ( "Hello" )
0 commit comments