The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Offer DeepSeek Flash under its documented deepseek-flash id (#83397)
Paolo Rascunà457b3c3fa57f
diff --git a/docs/ai/providers.md b/docs/ai/providers.mdindex e33e4633c88..712de864681 100644--- a/docs/ai/providers.md+++ b/docs/ai/providers.md@@ -169,14 +169,14 @@ Credentials:- Provider key: `deepseek`- Default model: `deepseek-v4-pro`-- Model for short tasks like naming a conversation: `deepseek-v4-flash`+- Model for short tasks like naming a conversation: `deepseek-flash`Supported models:-| Model | Model ID |-| ----------------- | ------------------- |-| DeepSeek V4 Flash | `deepseek-v4-flash` |-| DeepSeek V4 Pro | `deepseek-v4-pro` |+| Model | Model ID |+| --------------- | ----------------- |+| DeepSeek Flash | `deepseek-flash` |+| DeepSeek V4 Pro | `deepseek-v4-pro` |Credentials:diff --git a/src/metabase/llm/provider.clj b/src/metabase/llm/provider.cljindex af114c6a49a..6340ce67a6b 100644--- a/src/metabase/llm/provider.clj+++ b/src/metabase/llm/provider.clj@@ -161,7 +161,12 @@{:type "deepseek":label (deferred-tru "DeepSeek"):default-model "deepseek-v4-pro"- :mini-model "deepseek-v4-flash"+ :mini-model "deepseek-flash"+ ;; Ids of retired models, each mapped to the model that now serves it+ ;; (https://api-docs.deepseek.com/quick_start/pricing). Saved selections may still name them, and they read as+ ;; the successor. Treat an entry as permanent: nothing rewrites a value pinned by an environment variable, and a+ ;; stored value converges only when the setting is next written.+ :retired-models {"deepseek-v4-flash" "deepseek-flash"}:fields [{:key :api-key:label (deferred-tru "API key"):type :passworddiff --git a/src/metabase/metabot/self/deepseek.clj b/src/metabase/metabot/self/deepseek.cljindex 86cc2e8ef90..313d7115074 100644--- a/src/metabase/metabot/self/deepseek.clj+++ b/src/metabase/metabot/self/deepseek.clj@@ -52,8 +52,8 @@(def supported-models"DeepSeek models offered in the Metabot model picker, keyed by model id.`list-models` returns the intersection of this map with the `/models` catalog."- {"deepseek-v4-flash" {:display-name "DeepSeek V4 Flash"}- "deepseek-v4-pro" {:display-name "DeepSeek V4 Pro"}})+ {"deepseek-flash" {:display-name "DeepSeek Flash"}+ "deepseek-v4-pro" {:display-name "DeepSeek V4 Pro"}})(def ^:private thinking-enabled-payload"Sent whenever thinking is allowed. Explicit rather than omitted: DeepSeek ignores andiff --git a/test/metabase/llm/provider_test.clj b/test/metabase/llm/provider_test.cljindex f86c95cf33f..1e70927a214 100644--- a/test/metabase/llm/provider_test.clj+++ b/test/metabase/llm/provider_test.clj@@ -739,7 +739,7 @@"mistral" "mistral-medium-3-5""zai" "glm-5.2""moonshot" "kimi-k3"- "deepseek" "deepseek-v4-flash"+ "deepseek" "deepseek-flash""xai" "grok-4.3""google" nil"azure" nildiff --git a/test/metabase/metabot/self/deepseek_test.clj b/test/metabase/metabot/self/deepseek_test.cljindex bfeff72f8d3..0a52f06e6c8 100644--- a/test/metabase/metabot/self/deepseek_test.clj+++ b/test/metabase/metabot/self/deepseek_test.clj@@ -287,16 +287,18 @@;;; ──────────────────────────────────────────────────────────────────(deftest list-models-filters-catalog-to-whitelist-test- (testing "display names come from the whitelist — DeepSeek catalog entries carry none"+ (testing (str "display names come from the whitelist — DeepSeek catalog entries carry none — and the retired "+ "`deepseek-v4-flash` alias is not offered even when the catalog lists it")(mt/with-dynamic-fn-redefs [http/request (fn [req](is (=? {:method :get:headers {"Authorization" "Bearer sk-deepseek-byok"}}req)){:status 200- :body {:data [{:id "deepseek-v4-flash"}+ :body {:data [{:id "deepseek-flash"}+ {:id "deepseek-v4-flash"}{:id "deepseek-v4-pro"}{:id "deepseek-chat"}]}})]- (is (= {:models [{:id "deepseek-v4-flash" :display_name "DeepSeek V4 Flash"}+ (is (= {:models [{:id "deepseek-flash" :display_name "DeepSeek Flash"}{:id "deepseek-v4-pro" :display_name "DeepSeek V4 Pro"}]}(deepseek/list-models {:credentials byok-credentials}))))))@@ -365,8 +367,9 @@;;; ──────────────────────────────────────────────────────────────────(deftest ^:parallel reasoning-model-test- (is (true? (deepseek/reasoning-model? "deepseek-v4-flash")))+ (is (true? (deepseek/reasoning-model? "deepseek-flash")))(is (true? (deepseek/reasoning-model? "deepseek-v4-pro")))+ (is (true? (deepseek/streams-reasoning? {:model "deepseek-flash"})))(is (false? (deepseek/reasoning-model? "deepseek-chat"))));;; ──────────────────────────────────────────────────────────────────diff --git a/test/metabase/metabot/self_test.clj b/test/metabase/metabot/self_test.cljindex e778fa60ac0..d4aba51368f 100644--- a/test/metabase/metabot/self_test.clj+++ b/test/metabase/metabot/self_test.clj@@ -16,6 +16,7 @@[metabase.metabot.self.bedrock :as bedrock][metabase.metabot.self.claude :as self.claude][metabase.metabot.self.core :as self.core]+ [metabase.metabot.self.deepseek :as deepseek][metabase.metabot.self.mistral :as mistral][metabase.metabot.self.moonshot :as moonshot][metabase.metabot.self.openai :as openai]@@ -45,6 +46,7 @@(def ^:private supported-models-by-provider-type{"anthropic" #'self.claude/supported-models"bedrock" #'bedrock/supported-models+ "deepseek" #'deepseek/supported-models"mistral" #'mistral/supported-models"moonshot" #'moonshot/supported-models"openai" #'openai/supported-models@@ -82,8 +84,8 @@(#'self/parse-provider-model "mistral/mistral-medium-3-5")))(is (=? {:provider "moonshot" :model "kimi-k3" :ai-proxy? false}(#'self/parse-provider-model "moonshot/kimi-k3")))- (is (=? {:provider "deepseek" :model "deepseek-v4-flash" :ai-proxy? false}- (#'self/parse-provider-model "deepseek/deepseek-v4-flash")))+ (is (=? {:provider "deepseek" :model "deepseek-flash" :ai-proxy? false}+ (#'self/parse-provider-model "deepseek/deepseek-flash")))(is (=? {:provider "xai" :model "grok-4.7" :ai-proxy? false}(#'self/parse-provider-model "xai/grok-4.7")))(is (=? {:provider "google" :model "google/gemini-3.5-flash" :ai-proxy? false}