Skip to content

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

Fix typos in Metabot code (#67918)

Nemanja Glumac98adee8b1262
diff --git a/enterprise/backend/src/metabase_enterprise/metabot_v3/query_analyzer/impl.cljc b/enterprise/backend/src/metabase_enterprise/metabot_v3/query_analyzer/impl.cljc
index 38d84bbc65c..34a345c482e 100644
--- a/enterprise/backend/src/metabase_enterprise/metabot_v3/query_analyzer/impl.cljc
+++ b/enterprise/backend/src/metabase_enterprise/metabot_v3/query_analyzer/impl.cljc
@@ -56,7 +56,7 @@
;; This will slow things down, but until we measure the difference, opt for correctness.
:complex-parsing true}
;; 10 seconds
- :timout 10000
+ :timeout 10000
;; There is no plan to be exhaustive yet.
;; Note that while an allowed list would be more conservative, at the time of writing only 2 of the bundled
;; drivers use FINAL as a reserved word, and mentioning them all would be prohibitive.
diff --git a/enterprise/backend/src/metabase_enterprise/semantic_search/embedding.clj b/enterprise/backend/src/metabase_enterprise/semantic_search/embedding.clj
index 13f2631feb0..db03fb74511 100644
--- a/enterprise/backend/src/metabase_enterprise/semantic_search/embedding.clj
+++ b/enterprise/backend/src/metabase_enterprise/semantic_search/embedding.clj
@@ -280,7 +280,7 @@
(when (seq texts)
(let [{:keys [model-name provider vector-dimensions]} embedding-model]
(u/profile (str "Generating embeddings " {:model model-name
- :dimenions vector-dimensions
+ :dimensions vector-dimensions
:texts (calc-token-metrics texts)})
(if (= "openai" provider)
(let [max-tokens-per-batch (semantic-settings/openai-max-tokens-per-batch)
diff --git a/enterprise/backend/test/metabase_enterprise/metabot_v3/tools/api_test.clj b/enterprise/backend/test/metabase_enterprise/metabot_v3/tools/api_test.clj
index 1511b8f4d98..60f1a576316 100644
--- a/enterprise/backend/test/metabase_enterprise/metabot_v3/tools/api_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/metabot_v3/tools/api_test.clj
@@ -83,7 +83,7 @@
:field_id (-> table-id
metabot-v3.tools.u/table-field-id-prefix
(str 4)) ; name
- :limt 15}
+ :limit 15}
:conversation_id conversation-id})]
(is (=? {:structured_output {:statistics
{:distinct_count 2499,
@@ -1071,7 +1071,7 @@
:field_id (-> table-id
metabot-v3.tools.u/table-field-id-prefix
(str 8)) ; quantity
- :limt 15}
+ :limit 15}
:conversation_id conversation-id})]
(is (=? {:structured_output {:values int-sequence?}
:conversation_id conversation-id}