Commit 9c9d856
Changed files (1)
modules
dev
agents
crush
modules/dev/agents/crush/provider-cline.sh
@@ -3,7 +3,8 @@ provider add cline \
--base-url "https://api.cline.bot/api/v1/" \
--discover-models false
-# The feed lists ids without capabilities, so join it with OpenRouter.
+# The feed lists ids without capabilities, so join it with OpenRouter for
+# capabilities and reasoning levels.
_cline_pass_models="$(curl -fsSL --max-time 20 \
"https://api.cline.bot/api/v1/ai/cline/recommended-models" || true)"
if [ -n "$_cline_pass_models" ]; then
@@ -24,15 +25,20 @@ if [ -n "$_cline_pass_models" ]; then
(($m | length) == 0
or (($m.supported_parameters // []) | index("reasoning")) != null
or $m.reasoning != null),
- ((($m.architecture.input_modalities // []) | index("image")) != null)
+ ((($m.architecture.input_modalities // []) | index("image")) != null),
+ (($m.reasoning.supported_efforts // []) | join(",")),
+ ($m.reasoning.default_effort // "")
]
| @tsv
' |
- while IFS=$'\t' read -r slug name ctx maxtokens canreason images; do
- model add "cline/cline-pass/$slug" --name "$name" \
+ while IFS=$'\t' read -r slug name ctx maxtokens canreason images levels effort; do
+ args=("cline/cline-pass/$slug" --name "$name" \
--context-window "$ctx" \
--default-max-tokens "$maxtokens" \
--can-reason "$canreason" \
- --supports-images "$images" </dev/null
+ --supports-images "$images")
+ if [ -n "$levels" ]; then args+=(--reasoning-levels "$levels"); fi
+ if [ -n "$effort" ]; then args+=(--reasoning-effort "$effort"); fi
+ model add "${args[@]}" </dev/null
done
fi