File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ function mergeOpenRouterProviderRouting(params: {
5656 const modelRouting = readRecord ( params . modelParams ?. provider ) ;
5757 const extraRouting = readRecord ( params . extraParams . provider ) ;
5858 const merged = {
59- ...( providerRouting ?? { } ) ,
60- ...( modelRouting ?? { } ) ,
61- ...( extraRouting ?? { } ) ,
59+ ...providerRouting ,
60+ ...modelRouting ,
61+ ...extraRouting ,
6262 } ;
6363 return Object . keys ( merged ) . length > 0 ? merged : undefined ;
6464}
@@ -78,8 +78,8 @@ export function resolveOpenRouterExtraParamsForTransport(
7878 }
7979 return {
8080 patch : {
81- ...( providerConfigParams ?? { } ) ,
82- ...( modelParams ?? { } ) ,
81+ ...providerConfigParams ,
82+ ...modelParams ,
8383 ...ctx . extraParams ,
8484 ...( providerRouting ? { provider : providerRouting } : { } ) ,
8585 } ,
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export type {
2121 ChannelStreamingConfig ,
2222 ChannelStreamingProgressConfig ,
2323 ChannelStreamingPreviewConfig ,
24- SlackChannelStreamingConfig ,
2524 StreamingMode ,
2625 TextChunkMode ,
2726} from "../config/types.base.js" ;
27+ export type { SlackChannelStreamingConfig } from "../config/types.slack.js" ;
2828
2929type StreamingCompatEntry = {
3030 streaming ?: unknown ;
You can’t perform that action at this time.
0 commit comments