diff options
| author | Jay V <[email protected]> | 2025-07-08 15:19:56 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-07-08 17:18:38 -0400 |
| commit | 0514f3f43b49e3f1fc7c13d1921e4d558ad8647c (patch) | |
| tree | 8d0977aca1c82d8b7f72041c4d7499641a3c0c89 | |
| parent | 1e07384364d6ec42239f8fdebcffc66f340c3761 (diff) | |
| download | opencode-0514f3f43b49e3f1fc7c13d1921e4d558ad8647c.tar.gz opencode-0514f3f43b49e3f1fc7c13d1921e4d558ad8647c.zip | |
docs: share image model
| -rw-r--r-- | packages/web/src/pages/s/[id].astro | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/web/src/pages/s/[id].astro b/packages/web/src/pages/s/[id].astro index a81d2e786..46cdd2484 100644 --- a/packages/web/src/pages/s/[id].astro +++ b/packages/web/src/pages/s/[id].astro @@ -23,9 +23,8 @@ const models: Set<string> = new Set(); const version = data.info.version ? `v${data.info.version}` : "v0.0.1"; Object.values(data.messages).forEach((d) => { - const assistant = d.metadata?.assistant; - if (assistant) { - models.add(assistant.modelID); + if (d.role === "assistant" && d.modelID) { + models.add(d.modelID); } }); |
