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
Add GPT-6 Astra support (#82499)
Chris Truter7c771f3c3318
diff --git a/docs/ai/providers.md b/docs/ai/providers.mdindex 7c90a10817a..a3150ddb6a5 100644--- a/docs/ai/providers.md+++ b/docs/ai/providers.md@@ -62,6 +62,7 @@ Supported models:| GPT-5.6 Luna | `gpt-5.6-luna` | 922,000 || GPT-5.6 Sol | `gpt-5.6-sol` | 922,000 || GPT-5.6 Terra | `gpt-5.6-terra` | 922,000 |+| GPT-6 Astra | `gpt-6-astra` | 922,000 |Credentials:@@ -247,6 +248,7 @@ Supported models:| GPT-5.4 (2026-03-05) | `openai.gpt-5.4-2026-03-05` | 272,000 || GPT-5.5 | `openai.gpt-5.5` | 272,000 || GPT-5.5 (2026-04-23) | `openai.gpt-5.5-2026-04-23` | 272,000 |+| GPT-6 Astra | `openai.gpt-6-astra` | 922,000 |Credentials:diff --git a/src/metabase/metabot/self/azure.clj b/src/metabase/metabot/self/azure.cljindex 3459d3c47c2..1f1bba32981 100644--- a/src/metabase/metabot/self/azure.clj+++ b/src/metabase/metabot/self/azure.clj@@ -84,6 +84,7 @@"claude-sonnet-4-6" 1000000"claude-sonnet-4-5" 200000"claude-haiku-4-5" 200000+ "gpt-6-astra" 922000"gpt-5.6-sol" 922000"gpt-5.6-terra" 922000"gpt-5.6-luna" 922000diff --git a/src/metabase/metabot/self/bedrock.clj b/src/metabase/metabot/self/bedrock.cljindex 6524faf1c08..9dd4656a1d1 100644--- a/src/metabase/metabot/self/bedrock.clj+++ b/src/metabase/metabot/self/bedrock.clj@@ -256,6 +256,8 @@"anthropic.claude-opus-4-7" {:display-name "Claude Opus 4.7" :context-window 1000000}"anthropic.claude-sonnet-5" {:display-name "Claude Sonnet 5" :context-window 1000000}"anthropic.claude-haiku-4-5" {:display-name "Claude Haiku 4.5" :context-window 200000}+ ;; Astra's input window is its 1,050,000 token context minus up to 128,000 output tokens.+ "openai.gpt-6-astra" {:display-name "GPT-6 Astra" :context-window 922000}"openai.gpt-5.4" {:display-name "GPT-5.4" :context-window 272000}"openai.gpt-5.4-2026-03-05" {:display-name "GPT-5.4 (2026-03-05)" :context-window 272000}"openai.gpt-5.5" {:display-name "GPT-5.5" :context-window 272000}diff --git a/src/metabase/metabot/self/openai.clj b/src/metabase/metabot/self/openai.cljindex e04739d6042..5a6d6b67811 100644--- a/src/metabase/metabot/self/openai.clj+++ b/src/metabase/metabot/self/openai.clj@@ -253,7 +253,8 @@(def supported-models"OpenAI chat models offered in the Metabot model picker, keyed by model id.`list-models` returns the intersection of this map with the account's `/v1/models` catalog."- {"gpt-5.6-sol" {:display-name "GPT-5.6 Sol" :context-window 922000}+ {"gpt-6-astra" {:display-name "GPT-6 Astra" :context-window 922000}+ "gpt-5.6-sol" {:display-name "GPT-5.6 Sol" :context-window 922000}"gpt-5.6-terra" {:display-name "GPT-5.6 Terra" :context-window 922000}"gpt-5.6-luna" {:display-name "GPT-5.6 Luna" :context-window 922000}"gpt-5.5" {:display-name "GPT-5.5" :context-window 922000}@@ -315,15 +316,15 @@(defn- model-supports-temperature?"Whether `model` accepts an explicit `temperature` parameter.- The GPT-5 family and the o-series reasoning models only support the default temperature."+ The GPT-5 and GPT-6 families and the o-series reasoning models only support the default temperature."[model](let [model (strip-vendor-prefix model)]- (not (or (str/starts-with? model "gpt-5")+ (not (or (re-find #"^gpt-[56]" model)(re-find #"^o\d" model)))))(defn reasoning-model?"Whether `model` is a reasoning model that can emit reasoning summaries — the- same GPT-5 / o-series set that rejects an explicit temperature."+ same GPT-5 / GPT-6 / o-series set that rejects an explicit temperature."[model](not (model-supports-temperature? model)))diff --git a/test/metabase/metabot/self/azure_test.clj b/test/metabase/metabot/self/azure_test.cljindex 77236fedeab..6c778872eaa 100644--- a/test/metabase/metabot/self/azure_test.clj+++ b/test/metabase/metabot/self/azure_test.clj@@ -220,6 +220,7 @@"anthropic" false"openai/gpt-5.4" true"openai/GPT-5.4" true+ "openai/gpt-6-astra" true"openai/o3-mini" true"openai/gpt-4.1-mini" false"evilai/some-deployment" falsediff --git a/test/metabase/metabot/self/bedrock_test.clj b/test/metabase/metabot/self/bedrock_test.cljindex 85b77ae005f..840d110ec88 100644--- a/test/metabase/metabot/self/bedrock_test.clj+++ b/test/metabase/metabot/self/bedrock_test.clj@@ -40,7 +40,7 @@(deftest ^:parallel supported-model?-test(testing "whitelisted models are supported"(doseq [id ["anthropic.claude-fable-5" "anthropic.claude-opus-5" "anthropic.claude-opus-4-8"- "anthropic.claude-sonnet-5" "openai.gpt-5.5"]]+ "anthropic.claude-sonnet-5" "openai.gpt-5.5" "openai.gpt-6-astra"]](is (true? (#'bedrock/supported-model? {:id id})) id)))(testing "non-whitelisted models are not supported, even for supported vendors"(doseq [id ["anthropic.claude-3-5-sonnet" "openai.gpt-oss-120b"diff --git a/test/metabase/metabot/self/openai_test.clj b/test/metabase/metabot/self/openai_test.cljindex 4005cc2906c..7aa3e95cb85 100644--- a/test/metabase/metabot/self/openai_test.clj+++ b/test/metabase/metabot/self/openai_test.clj@@ -370,6 +370,7 @@(let [reasoning #(:reasoning (openai/openai-request-body {:model % :input []}))](is (= {:summary "auto"} (reasoning "gpt-5.4")))(is (= {:summary "auto"} (reasoning "gpt-5.6-sol")))+ (is (= {:summary "auto"} (reasoning "gpt-6-astra")))(is (= {:summary "auto"} (reasoning "o3")))(testing "bedrock/azure vendor prefix is stripped"(is (= {:summary "auto"} (reasoning "openai.gpt-5.4"))))@@ -396,7 +397,7 @@(deftest ^:parallel supported-model?-test(testing "whitelisted models are supported"- (doseq [id ["gpt-5.6-sol" "gpt-5.6-terra" "gpt-5.6-luna" "gpt-5.5" "gpt-5.4-mini"]]+ (doseq [id ["gpt-6-astra" "gpt-5.6-sol" "gpt-5.6-terra" "gpt-5.6-luna" "gpt-5.5" "gpt-5.4-mini"]](is (true? (#'openai/supported-model? {:id id})) id)))(testing "non-white-listed models are not supported"(doseq [id ["gpt-5" "gpt-4.1" "gpt-4.1-mini" "gpt-4o" "o3" "text-embedding-3-small"]]@@ -407,7 +408,8 @@(mt/with-temporary-setting-values [llm.settings/llm-openai-api-key "sk-test"](with-redefs [http/request (fn [_]{:status 200- :body {:data [{:id "gpt-5.6-sol" :created 40}+ :body {:data [{:id "gpt-6-astra" :created 41}+ {:id "gpt-5.6-sol" :created 40}{:id "gpt-5.6-luna" :created 39}{:id "gpt-5-mini" :created 30}{:id "gpt-5" :created 28}@@ -420,7 +422,8 @@{:id "whisper-1" :created 7}]}})](is (= [{:id "gpt-5.4" :display_name "GPT-5.4"}{:id "gpt-5.6-luna" :display_name "GPT-5.6 Luna"}- {:id "gpt-5.6-sol" :display_name "GPT-5.6 Sol"}]+ {:id "gpt-5.6-sol" :display_name "GPT-5.6 Sol"}+ {:id "gpt-6-astra" :display_name "GPT-6 Astra"}](:models (openai/list-models {:credentials byok-credentials}))))))))(deftest openai-raw-explicit-credentials-test@@ -483,8 +486,8 @@(doseq [model ["gpt-4.1-mini" "gpt-4.1" "gpt-4o" "gpt-3.5-turbo"]](is (true? (#'openai/model-supports-temperature? model))model)))- (testing "GPT-5 family and o-series reasoning models do not"- (doseq [model ["gpt-5" "gpt-5-mini" "gpt-5-nano" "gpt-5-2025-08-07" "gpt-5.6-sol"+ (testing "GPT-5 and GPT-6 families and o-series reasoning models do not"+ (doseq [model ["gpt-5" "gpt-5-mini" "gpt-5-nano" "gpt-5-2025-08-07" "gpt-5.6-sol" "gpt-6-astra""o1" "o1-mini" "o3" "o3-mini" "o4-mini"]](is (false? (#'openai/model-supports-temperature? model))model))))@@ -511,6 +514,8 @@(is (= 0.3 (:temperature (request-body {:model "gpt-4.1-mini"})))))(testing "temperature is omitted for a GPT-5 model"(is (not (contains? (request-body {:model "gpt-5"}) :temperature))))+ (testing "temperature is omitted for a GPT-6 model"+ (is (not (contains? (request-body {:model "gpt-6-astra"}) :temperature))))(testing "temperature is omitted for an o-series model"(is (not (contains? (request-body {:model "o3-mini"}) :temperature))))))