diff --git a/dashboard/ai/launch.sh b/dashboard/ai/launch.sh index 4e03588d24e11358d5854187ad69ce988767472d..2b9927905b06dc9c892138bd17db8e5d518daedd 100644 --- a/dashboard/ai/launch.sh +++ b/dashboard/ai/launch.sh @@ -42,6 +42,7 @@ SNOW_MODEL_CATALOG -c 'model_reasoning_effort="@REASONING@"' \ -c 'model_reasoning_summary="none"' \ -c "model_catalog_json=\"$catalog\"" \ + -c "developer_instructions=\"Your model name is $model.\"" \ -c 'web_search="disabled"' \ -c 'features.plugins=false' -c 'features.apps=false' -c 'features.memories=false' \ -c 'analytics.enabled=false' \ @@ -69,5 +70,5 @@ else export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 API_TIMEOUT_MS=28800000 API_FORCE_IDLE_TIMEOUT=0 export CLAUDE_STREAM_IDLE_TIMEOUT_MS=28800000 CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS=1800000 export CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS=28800000 - exec claude --permission-mode auto "$@" + exec claude --permission-mode auto --append-system-prompt "Your model name is $model." "$@" fi diff --git a/dashboard/src/shale.rs b/dashboard/src/shale.rs index ea74720598d1c52c21384084477a2e86f722de9b..9235fc27380c23a4ea4f9b240083dd3f3ff99bfa 100644 --- a/dashboard/src/shale.rs +++ b/dashboard/src/shale.rs @@ -455,6 +455,7 @@ impl ServerHandler for Shale { if arguments.contains_key("model") { return Err(Error::new(400, "Read tools do not need a model.")); } None }; + let model = model.map(|id| if id == "qwen3.8-27b" { "qwen-3.8-27b" } else { id }); let credential = session(app, string(&grant["user"]))?; current(app, grant, &credential)?; if name == "list_repositories" {