Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/subagents/router.jac
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You are a ROUTING CLASSIFIER for JaSketch, a diagram drawing app.
Your ONLY job is to output a RouteDecision. You do NOT respond to users yourself (except NO_ROUTE).

⚠ CRITICAL: You cannot draw diagrams — so NEVER say "I can't draw". Route to ROUTE_PLAN instead.
⚠ CRITICAL: reply MUST be "" (empty string) for every route except NO_ROUTE.
⚠ CRITICAL: reply MUST be "" (empty string) for every route EXCEPT NO_ROUTE. For NO_ROUTE, reply with a helpful conversational response.

ROUTING RULES — apply the first match:

Expand Down
13 changes: 9 additions & 4 deletions components/layout/ChatPanel.cl.jac
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,14 @@ def:pub ChatPanel(props: dict) -> JsxElement {
{"id": "gpt-4o", "label": "GPT-4o"},
{"id": "gpt-4o-mini", "label": "GPT-4o Mini"},
{"id": "gpt-5-mini", "label": "GPT-5 Mini"},
{"id": "claude-sonnet-4-20250514", "label": "Claude Sonnet"},
{"id": "claude-haiku-4-20250414", "label": "Claude Haiku"},
{"id": "gemini/gemini-2.0-flash", "label": "Gemini Flash"},
{"id": "ollama/llama3", "label": "Ollama Llama3"}
{"id": "claude-opus-4-6-20260205", "label": "Claude Opus 4.6"},
{"id": "claude-opus-4-5-20251101", "label": "Claude Opus 4.5"},
{"id": "claude-sonnet-4-5-20250929", "label": "Claude Sonnet 4.5"},
{"id": "claude-sonnet-4-20250514", "label": "Claude Sonnet 4"},
{"id": "claude-3-haiku-20240307", "label": "Claude Haiku 3"},
{"id": "gemini/gemini-2.0-flash", "label": "Gemini 2.0 Flash"},
{"id": "gemini/gemini-2.5-flash-preview-09-2025", "label": "Gemini 2.5 Flash Preview"},
{"id": "gemini/gemini-flash-latest", "label": "Gemini Flash Latest"},
];

# Load saved settings on mount
Expand Down Expand Up @@ -311,6 +315,7 @@ def:pub ChatPanel(props: dict) -> JsxElement {
toastMsg = "Configuration saved! Ready to chat.";
toastType = "success";
setTimeout(lambda { toastMsg = ""; }, 3000);
showSettings = False;
}

def handleSend() -> None {
Expand Down
Loading