feat: integration of models.dev and proper handling of outpout tokens

This commit is contained in:
2026-03-01 14:04:23 +01:00
parent 6891613943
commit 1dd520f770
18 changed files with 2101 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
CREATE TABLE `model_catalog` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`family` text,
`context_window` integer,
`max_input_tokens` integer,
`max_output_tokens` integer,
`input_price` real,
`output_price` real,
`cache_read_price` real,
`supports_attachments` integer DEFAULT false,
`supports_reasoning` integer DEFAULT false,
`supports_tool_call` integer DEFAULT false,
`updated_at` integer NOT NULL
);
--> statement-breakpoint
CREATE TABLE `model_catalog_meta` (
`key` text PRIMARY KEY NOT NULL,
`value` text NOT NULL
);

File diff suppressed because it is too large Load Diff

View File

@@ -57,6 +57,13 @@
"when": 1772301340810,
"tag": "0007_closed_sabretooth",
"breakpoints": true
},
{
"idx": 8,
"version": "6",
"when": 1772369331600,
"tag": "0008_third_cable",
"breakpoints": true
}
]
}