@@ -2483,6 +2483,31 @@ describe("ProviderTransform.message - cache control on gateway", () => {
24832483 } )
24842484} )
24852485
2486+ describe ( "ProviderTransform.options - Cohere North" , ( ) => {
2487+ test ( "disables citations by default for north-mini-code-1-0" , ( ) => {
2488+ const result = ProviderTransform . options ( {
2489+ model : {
2490+ id : "cohere/north-mini-code-1-0" ,
2491+ providerID : "cohere" ,
2492+ api : {
2493+ id : "North-Mini-Code-1-0-latest" ,
2494+ url : "https://api.cohere.com/compatibility/v1" ,
2495+ npm : "@ai-sdk/openai-compatible" ,
2496+ } ,
2497+ capabilities : { reasoning : true } ,
2498+ } as any ,
2499+ sessionID : "test-session-123" ,
2500+ } )
2501+ expect ( result . options ) . toEqual ( { citation_options : { mode : "disabled" } } )
2502+ } )
2503+ } )
2504+
2505+ describe ( "ProviderTransform.temperature - Cohere North" , ( ) => {
2506+ test ( "defaults north-mini-code models to 1.0" , ( ) => {
2507+ expect ( ProviderTransform . temperature ( { id : "cohere/North-Mini-Code-1-0-latest" } as any ) ) . toBe ( 1.0 )
2508+ } )
2509+ } )
2510+
24862511describe ( "ProviderTransform.variants" , ( ) => {
24872512 const createMockModel = ( overrides : Partial < any > = { } ) : any => ( {
24882513 id : "test/test-model" ,
@@ -3209,6 +3234,23 @@ describe("ProviderTransform.variants", () => {
32093234 expect ( result . low ) . toEqual ( { reasoningEffort : "low" } )
32103235 expect ( result . high ) . toEqual ( { reasoningEffort : "high" } )
32113236 } )
3237+
3238+ test ( "north-mini-code-1-0 returns only none and high" , ( ) => {
3239+ const model = createMockModel ( {
3240+ id : "cohere/north-mini-code-1-0" ,
3241+ providerID : "cohere" ,
3242+ api : {
3243+ id : "North-Mini-Code-1-0-latest" ,
3244+ url : "https://api.cohere.com/compatibility/v1" ,
3245+ npm : "@ai-sdk/openai-compatible" ,
3246+ } ,
3247+ } )
3248+ const result = ProviderTransform . variants ( model )
3249+ expect ( result ) . toEqual ( {
3250+ none : { reasoningEffort : "none" } ,
3251+ high : { reasoningEffort : "high" } ,
3252+ } )
3253+ } )
32123254 } )
32133255
32143256 describe ( "@ai-sdk/azure" , ( ) => {
0 commit comments