mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 02:03:29 +00:00
fix overloaded models issue
This commit is contained in:
parent
1c67004999
commit
feaec7a6be
1 changed files with 4 additions and 1 deletions
|
|
@ -26,7 +26,10 @@ export const ModelsDevPlugin = define({
|
|||
})
|
||||
yield* ctx.catalog.transform((catalog) => {
|
||||
for (const provider of loaded.data) {
|
||||
catalog.provider.update(provider.info.id, (draft) => Object.assign(draft, provider.info))
|
||||
catalog.provider.update(provider.info.id, (draft) => {
|
||||
Object.assign(draft, provider.info)
|
||||
draft.integrationID = provider.info.id
|
||||
})
|
||||
for (const model of provider.models) {
|
||||
catalog.model.update(provider.info.id, model.id, (draft) => Object.assign(draft, model))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue