We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 842edf3 commit b3ae8ecCopy full SHA for b3ae8ec
packages/opencode/src/provider/provider.ts
@@ -297,7 +297,11 @@ export namespace Provider {
297
const existing = parsed.models[modelID]
298
const parsedModel: ModelsDev.Model = {
299
id: modelID,
300
- name: model.name ?? existing?.name ?? modelID,
+ name:
301
+ model.name ??
302
+ (model.id && model.id !== modelID
303
+ ? modelID
304
+ : existing?.name ?? modelID),
305
release_date: model.release_date ?? existing?.release_date,
306
attachment: model.attachment ?? existing?.attachment ?? false,
307
reasoning: model.reasoning ?? existing?.reasoning ?? false,
0 commit comments