fix(core): default custom model capabilities (#38449)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-22 23:20:16 -05:00 committed by GitHub
commit b6f85c2250
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 235 additions and 153 deletions

View file

@ -106,13 +106,13 @@ export const Info = Schema.Struct({
.annotate({ identifier: "Model.Info" })
.pipe(
statics(() => ({
empty: (providerID: Provider.ID, id: ID) =>
default: (providerID: Provider.ID, id: ID) =>
({
id,
modelID: id,
providerID,
name: id,
capabilities: { tools: false, input: [], output: [] },
capabilities: { tools: true, input: ["text", "image"], output: ["text"] },
variants: [],
time: { released: 0 },
cost: [],