Skip to content

Commit b3ae8ec

Browse files
shuv1337Copilot
andauthored
Update packages/opencode/src/provider/provider.ts
Co-authored-by: Copilot <[email protected]>
1 parent 842edf3 commit b3ae8ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/opencode/src/provider/provider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@ export namespace Provider {
297297
const existing = parsed.models[modelID]
298298
const parsedModel: ModelsDev.Model = {
299299
id: modelID,
300-
name: model.name ?? existing?.name ?? modelID,
300+
name:
301+
model.name ??
302+
(model.id && model.id !== modelID
303+
? modelID
304+
: existing?.name ?? modelID),
301305
release_date: model.release_date ?? existing?.release_date,
302306
attachment: model.attachment ?? existing?.attachment ?? false,
303307
reasoning: model.reasoning ?? existing?.reasoning ?? false,

0 commit comments

Comments
 (0)