Changeset 0.10.4 (#60)
This commit is contained in:
14
server/database/migrations/005_model_type.sql
Normal file
14
server/database/migrations/005_model_type.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Migration 005: Add model_type to model_catalog
|
||||
--
|
||||
-- Providers like Venice return a "type" field per model (e.g. "text", "embedding", "image").
|
||||
-- This column captures that classification so role dropdowns can filter appropriately:
|
||||
-- - "embedding" role → only embedding models
|
||||
-- - "utility" role → only chat/text models
|
||||
--
|
||||
-- Default is "chat" (the overwhelming majority of models). Provider sync will
|
||||
-- populate from the wire response when available — NO hardcoding of model types.
|
||||
|
||||
ALTER TABLE model_catalog ADD COLUMN IF NOT EXISTS model_type VARCHAR(20) DEFAULT 'chat';
|
||||
|
||||
-- Index for role UI filtering (e.g. "show me all embedding models for this provider")
|
||||
CREATE INDEX IF NOT EXISTS idx_model_catalog_type ON model_catalog(model_type);
|
||||
Reference in New Issue
Block a user