feat: integration of models.dev and proper handling of outpout tokens
This commit is contained in:
20
drizzle/0008_third_cable.sql
Normal file
20
drizzle/0008_third_cable.sql
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user