Let superadmins assign one OpenRouter model per task group.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Successful in 50s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m40s

Reasoning, drafting, and matching prompts inherit that model, so each prompt does not need its own setting.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 09:59:28 +01:00
1 parent 0431c9e160
commit b537750671
14 files changed
+720 -65

No files matched your search

+4 -4
View File
@@ -48,7 +48,7 @@ def _fetch_prompt_any(cur, prompt_id: int) -> Dict[str, Any]:
cur.execute(
"""
SELECT id, slug, display_name, description, template, category, output_format,
output_schema, is_system_default, default_template, openrouter_model,
output_schema, is_system_default, default_template, openrouter_model, model_role,
active, sort_order, created_at, updated_at
FROM ai_prompts WHERE id = %s
""",
@@ -96,7 +96,7 @@ def list_ai_prompts(session: dict = Depends(_require_superadmin)):
cur.execute(
"""
SELECT id, slug, display_name, description, category, output_format, active,
sort_order, is_system_default, default_template, openrouter_model
sort_order, is_system_default, default_template, openrouter_model, model_role
FROM ai_prompts
ORDER BY sort_order ASC NULLS LAST, id ASC
"""
@@ -174,7 +174,7 @@ def update_ai_prompt(
openrouter_model = %s, updated_at = NOW()
WHERE id = %s
RETURNING id, slug, display_name, description, template, category, output_format,
output_schema, is_system_default, default_template, openrouter_model,
output_schema, is_system_default, default_template, openrouter_model, model_role,
active, sort_order,
created_at, updated_at
""",
@@ -207,7 +207,7 @@ def reset_ai_prompt_template(prompt_id: int, session: dict = Depends(_require_su
SET template = default_template, updated_at = NOW()
WHERE id = %s AND default_template IS NOT NULL
RETURNING id, slug, display_name, description, template, category, output_format,
output_schema, is_system_default, default_template, openrouter_model,
output_schema, is_system_default, default_template, openrouter_model, model_role,
active, sort_order,
created_at, updated_at
""",