Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(slack): preserve custom models not in suggestion list

cyhhaof8255c36559a
diff --git a/modules/im/slack.py b/modules/im/slack.py
index dbcdf2605..1caa14cc5 100644
--- a/modules/im/slack.py
+++ b/modules/im/slack.py
@@ -1913,6 +1913,13 @@ class SlackBot(BaseIMClient):
"value": model,
})
+ # Add current model if not in list (preserve custom models)
+ if current_cl_model and not any(opt["value"] == current_cl_model for opt in cl_model_options):
+ cl_model_options.append({
+ "text": {"type": "plain_text", "text": current_cl_model[:75]},
+ "value": current_cl_model,
+ })
+
# Limit to 100 options
if len(cl_model_options) > 100:
cl_model_options = cl_model_options[:100]
@@ -1989,6 +1996,13 @@ class SlackBot(BaseIMClient):
"value": model,
})
+ # Add current model if not in list (preserve custom models)
+ if current_cx_model and not any(opt["value"] == current_cx_model for opt in cx_model_options):
+ cx_model_options.append({
+ "text": {"type": "plain_text", "text": current_cx_model[:75]},
+ "value": current_cx_model,
+ })
+
# Limit to 100 options
if len(cx_model_options) > 100:
cx_model_options = cx_model_options[:100]