mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
dumb
This commit is contained in:
@@ -12,7 +12,6 @@ export namespace ModelsDev {
|
||||
export const Model = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
target: z.string(),
|
||||
release_date: z.string(),
|
||||
attachment: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
|
||||
@@ -380,7 +380,7 @@ export namespace Provider {
|
||||
providerID: provider.id,
|
||||
name: model.name,
|
||||
api: {
|
||||
id: model.target ?? model.id,
|
||||
id: model.id,
|
||||
url: provider.api!,
|
||||
npm: model.provider?.npm ?? provider.npm ?? provider.id,
|
||||
},
|
||||
@@ -513,7 +513,7 @@ export namespace Provider {
|
||||
const parsedModel: Model = {
|
||||
id: modelID,
|
||||
api: {
|
||||
id: model.target ?? model.id ?? existing?.api.id ?? modelID,
|
||||
id: model.id ?? existing?.api.id ?? modelID,
|
||||
npm: model.provider?.npm ?? provider.npm ?? existing?.api.npm ?? providerID,
|
||||
url: provider?.api ?? existing?.api.url,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user