mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
add models.dev family
This commit is contained in:
parent
18d3c054a3
commit
ffc4d53923
2 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ export namespace ModelsDev {
|
|||
export const Model = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
family: z.string().optional(),
|
||||
release_date: z.string(),
|
||||
attachment: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
|
|
|
|||
|
|
@ -330,6 +330,7 @@ export namespace Provider {
|
|||
npm: z.string(),
|
||||
}),
|
||||
name: z.string(),
|
||||
family: z.string().optional(),
|
||||
capabilities: z.object({
|
||||
temperature: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
|
|
@ -407,6 +408,7 @@ export namespace Provider {
|
|||
id: model.id,
|
||||
providerID: provider.id,
|
||||
name: model.name,
|
||||
family: model.family,
|
||||
api: {
|
||||
id: model.id,
|
||||
url: provider.api!,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue