@@ -29,6 +29,7 @@ export type ToolConfig = {
2929 reasoning_effort ?: ReasoningEffort
3030 max_concurrency ?: number
3131 instructions_placement ?: InstructionsPlacement
32+ is_pinned ?: boolean
3233}
3334
3435export const get_tool_config_id = ( config : ToolConfig ) : string => {
@@ -167,6 +168,7 @@ export class ModelProvidersManager {
167168 reasoningEffort ?: ReasoningEffort
168169 maxConcurrency ?: number
169170 instructionsPlacement ?: InstructionsPlacement
171+ isPinned ?: boolean
170172 } [ ]
171173 > ( settings_key , [ ] )
172174
@@ -180,7 +182,8 @@ export class ModelProvidersManager {
180182 temperature : sc . temperature ?? 1.0 ,
181183 reasoning_effort : sc . reasoningEffort ,
182184 max_concurrency : sc . maxConcurrency ,
183- instructions_placement : sc . instructionsPlacement
185+ instructions_placement : sc . instructionsPlacement ,
186+ is_pinned : sc . isPinned
184187 }
185188 } )
186189 . filter ( ( tc ) => tc . provider_type )
@@ -213,6 +216,7 @@ export class ModelProvidersManager {
213216 new_config . maxConcurrency = c . max_concurrency
214217 if ( c . instructions_placement !== undefined )
215218 new_config . instructionsPlacement = c . instructions_placement
219+ if ( c . is_pinned ) new_config . isPinned = c . is_pinned
216220 return new_config
217221 } )
218222
@@ -253,6 +257,7 @@ export class ModelProvidersManager {
253257 isDefault ?: boolean
254258 maxConcurrency ?: number
255259 instructionsPlacement ?: InstructionsPlacement
260+ isPinned ?: boolean
256261 } [ ]
257262 > ( settings_key , [ ] )
258263 const default_config_from_settings = settings_configs . find (
@@ -271,7 +276,8 @@ export class ModelProvidersManager {
271276 reasoning_effort : default_config_from_settings . reasoningEffort ,
272277 max_concurrency : default_config_from_settings . maxConcurrency ,
273278 instructions_placement :
274- default_config_from_settings . instructionsPlacement
279+ default_config_from_settings . instructionsPlacement ,
280+ is_pinned : default_config_from_settings . isPinned
275281 }
276282 const validated_config = this . _validate_tool_config ( tool_config )
277283 if ( validated_config ) return validated_config
0 commit comments