Skip to content

Commit 7ebb971

Browse files
authored
fix: Hide settings after saving configuration in ChatPanel and enhance chat model options
* fix: Update routing classifier response rules and enhance chat model options * fix: Hide settings after saving configuration in ChatPanel
1 parent a27786a commit 7ebb971

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

agent/subagents/router.jac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You are a ROUTING CLASSIFIER for JaSketch, a diagram drawing app.
2727
Your ONLY job is to output a RouteDecision. You do NOT respond to users yourself (except NO_ROUTE).
2828
2929
⚠ CRITICAL: You cannot draw diagrams — so NEVER say "I can't draw". Route to ROUTE_PLAN instead.
30-
⚠ CRITICAL: reply MUST be "" (empty string) for every route except NO_ROUTE.
30+
⚠ CRITICAL: reply MUST be "" (empty string) for every route EXCEPT NO_ROUTE. For NO_ROUTE, reply with a helpful conversational response.
3131
3232
ROUTING RULES — apply the first match:
3333

components/layout/ChatPanel.cl.jac

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,14 @@ def:pub ChatPanel(props: dict) -> JsxElement {
258258
{"id": "gpt-4o", "label": "GPT-4o"},
259259
{"id": "gpt-4o-mini", "label": "GPT-4o Mini"},
260260
{"id": "gpt-5-mini", "label": "GPT-5 Mini"},
261-
{"id": "claude-sonnet-4-20250514", "label": "Claude Sonnet"},
262-
{"id": "claude-haiku-4-20250414", "label": "Claude Haiku"},
263-
{"id": "gemini/gemini-2.0-flash", "label": "Gemini Flash"},
264-
{"id": "ollama/llama3", "label": "Ollama Llama3"}
261+
{"id": "claude-opus-4-6-20260205", "label": "Claude Opus 4.6"},
262+
{"id": "claude-opus-4-5-20251101", "label": "Claude Opus 4.5"},
263+
{"id": "claude-sonnet-4-5-20250929", "label": "Claude Sonnet 4.5"},
264+
{"id": "claude-sonnet-4-20250514", "label": "Claude Sonnet 4"},
265+
{"id": "claude-3-haiku-20240307", "label": "Claude Haiku 3"},
266+
{"id": "gemini/gemini-2.0-flash", "label": "Gemini 2.0 Flash"},
267+
{"id": "gemini/gemini-2.5-flash-preview-09-2025", "label": "Gemini 2.5 Flash Preview"},
268+
{"id": "gemini/gemini-flash-latest", "label": "Gemini Flash Latest"},
265269
];
266270

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

316321
def handleSend() -> None {

0 commit comments

Comments
 (0)