mirror of
https://github.com/sst/opencode.git
synced 2025-08-28 17:04:10 +00:00
docs: share image model
This commit is contained in:
parent
1e07384364
commit
0514f3f43b
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,8 @@ const models: Set<string> = new Set();
|
||||||
const version = data.info.version ? `v${data.info.version}` : "v0.0.1";
|
const version = data.info.version ? `v${data.info.version}` : "v0.0.1";
|
||||||
|
|
||||||
Object.values(data.messages).forEach((d) => {
|
Object.values(data.messages).forEach((d) => {
|
||||||
const assistant = d.metadata?.assistant;
|
if (d.role === "assistant" && d.modelID) {
|
||||||
if (assistant) {
|
models.add(d.modelID);
|
||||||
models.add(assistant.modelID);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue