feat(prompts): add works best with feature for prompts

This commit is contained in:
Fatih Kadir Akın
2026-01-09 10:17:44 +03:00
parent ad3b472e8a
commit e4b18a0fac
12 changed files with 486 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "prompts" ADD COLUMN "bestWithMCP" JSONB,
ADD COLUMN "bestWithModels" TEXT[];

View File

@@ -124,6 +124,8 @@ model Prompt {
outgoingConnections PromptConnection[] @relation("ConnectionSource")
incomingConnections PromptConnection[] @relation("ConnectionTarget")
collectedBy Collection[]
bestWithModels String[] // Model slugs this prompt works best with (max 3), e.g. ["gpt-4o", "claude-3-5-sonnet"]
bestWithMCP Json? // MCP configs array, e.g. [{command: "npx -y @mcp/server", tools: ["tool1"]}]
@@index([authorId])
@@index([categoryId])