refactor(core): let plugins pin small models via catalog draft
Move copilot utility-model preference out of core selection into the github-copilot plugin by exposing catalog.model.small set/get/remove on the transform draft.
This commit is contained in:
parent
ba89671d90
commit
d3bdc98457
6 changed files with 49 additions and 14 deletions
|
|
@ -178,6 +178,12 @@ export function catalogHost(catalog: Catalog.Interface): PluginContext["catalog"
|
|||
set: (providerID, modelID) =>
|
||||
draft.model.default.set(ProviderV2.ID.make(providerID), ModelV2.ID.make(modelID)),
|
||||
},
|
||||
small: {
|
||||
get: (providerID) => draft.model.small.get(ProviderV2.ID.make(providerID)),
|
||||
set: (providerID, modelID) =>
|
||||
draft.model.small.set(ProviderV2.ID.make(providerID), ModelV2.ID.make(modelID)),
|
||||
remove: (providerID) => draft.model.small.remove(ProviderV2.ID.make(providerID)),
|
||||
},
|
||||
},
|
||||
}),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue