Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Enable Kimi K3 and Deepseek V4 Flash 0731 via OpenRouter (#79207)

appleby92b6b2120cd4
diff --git a/src/metabase/metabot/conversation_title.clj b/src/metabase/metabot/conversation_title.clj
index 617df621323..aa17d1e10d4 100644
--- a/src/metabase/metabot/conversation_title.clj
+++ b/src/metabase/metabot/conversation_title.clj
@@ -35,6 +35,13 @@
(def ^:private title-max-chars 80)
+(def ^:private title-max-tokens
+ "Output-token budget for the title call.
+
+ The title itself needs only a handful of tokens, but reasoning models spend this budget on reasoning before emitting
+ the forced tool call."
+ 512)
+
(def ^:private title-json-schema
{:type "object"
:properties {:title {:type "string"
@@ -120,7 +127,7 @@
{:role "user" :content (str "<session>\n" message "\n</session>")}]
title-json-schema
nil
- 128
+ title-max-tokens
{:request-id (str (random-uuid))
:session-id conversation-id
:profile-id profile-id
diff --git a/src/metabase/metabot/self/openrouter.clj b/src/metabase/metabot/self/openrouter.clj
index 7fab477cbb5..dd21750c6a5 100644
--- a/src/metabase/metabot/self/openrouter.clj
+++ b/src/metabase/metabot/self/openrouter.clj
@@ -48,28 +48,30 @@
Mirrors the models whitelisted for the direct anthropic and openai providers; note that
OpenRouter model IDs use dots in version numbers (`claude-haiku-4.5`), unlike the
Anthropic API's hyphenated IDs (`claude-haiku-4-5`)."
- {"anthropic/claude-fable-5" "Claude Fable 5"
- "anthropic/claude-opus-5" "Claude Opus 5"
- "anthropic/claude-opus-4.8" "Claude Opus 4.8"
- "anthropic/claude-opus-4.7" "Claude Opus 4.7"
- "anthropic/claude-opus-4.6" "Claude Opus 4.6"
- "anthropic/claude-opus-4.5" "Claude Opus 4.5"
- "anthropic/claude-opus-4.1" "Claude Opus 4.1"
- "anthropic/claude-sonnet-5" "Claude Sonnet 5"
- "anthropic/claude-sonnet-4.6" "Claude Sonnet 4.6"
- "anthropic/claude-sonnet-4.5" "Claude Sonnet 4.5"
- "anthropic/claude-haiku-4.5" "Claude Haiku 4.5"
- "deepseek/deepseek-v4-pro" "DeepSeek V4 Pro"
- "mistralai/mistral-medium-3-5" "Mistral Medium 3.5"
- "openai/gpt-5.6-sol" "GPT-5.6 Sol"
- "openai/gpt-5.6-terra" "GPT-5.6 Terra"
- "openai/gpt-5.6-luna" "GPT-5.6 Luna"
- "openai/gpt-5.5" "GPT-5.5"
- "openai/gpt-5.5-pro" "GPT-5.5 Pro"
- "openai/gpt-5.4" "GPT-5.4"
- "openai/gpt-5.4-pro" "GPT-5.4 Pro"
- "openai/gpt-5.4-mini" "GPT-5.4 Mini"
- "z-ai/glm-5.2" "GLM-5.2"})
+ {"anthropic/claude-fable-5" "Claude Fable 5"
+ "anthropic/claude-opus-5" "Claude Opus 5"
+ "anthropic/claude-opus-4.8" "Claude Opus 4.8"
+ "anthropic/claude-opus-4.7" "Claude Opus 4.7"
+ "anthropic/claude-opus-4.6" "Claude Opus 4.6"
+ "anthropic/claude-opus-4.5" "Claude Opus 4.5"
+ "anthropic/claude-opus-4.1" "Claude Opus 4.1"
+ "anthropic/claude-sonnet-5" "Claude Sonnet 5"
+ "anthropic/claude-sonnet-4.6" "Claude Sonnet 4.6"
+ "anthropic/claude-sonnet-4.5" "Claude Sonnet 4.5"
+ "anthropic/claude-haiku-4.5" "Claude Haiku 4.5"
+ "deepseek/deepseek-v4-pro" "DeepSeek V4 Pro"
+ "deepseek/deepseek-v4-flash-0731" "DeepSeek V4 Flash"
+ "mistralai/mistral-medium-3-5" "Mistral Medium 3.5"
+ "moonshotai/kimi-k3" "Kimi K3"
+ "openai/gpt-5.6-sol" "GPT-5.6 Sol"
+ "openai/gpt-5.6-terra" "GPT-5.6 Terra"
+ "openai/gpt-5.6-luna" "GPT-5.6 Luna"
+ "openai/gpt-5.5" "GPT-5.5"
+ "openai/gpt-5.5-pro" "GPT-5.5 Pro"
+ "openai/gpt-5.4" "GPT-5.4"
+ "openai/gpt-5.4-pro" "GPT-5.4 Pro"
+ "openai/gpt-5.4-mini" "GPT-5.4 Mini"
+ "z-ai/glm-5.2" "GLM-5.2"})
(defn- supported-model?
"Whether a `/v1/models` catalog entry is one of the [[supported-models]]."