Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ci): sync diagnostics and AI sampling

t8y2c9ab2fb60aad
diff --git a/crates/dbx-core/src/ai.rs b/crates/dbx-core/src/ai.rs
index 0495ef876e..9fdd7f7371 100644
--- a/crates/dbx-core/src/ai.rs
+++ b/crates/dbx-core/src/ai.rs
@@ -425,10 +425,10 @@ fn is_kimi_model(model: &str) -> bool {
if let Some(rest) = model.strip_prefix("kimi-k") {
if rest.starts_with("2.") && rest.len() > 2 {
// K2.x — the digit after "2." must be >= 5 (so K2.5+)
- rest[2..].chars().next().map_or(false, |c| c.is_ascii_digit() && c >= '5')
+ rest[2..].chars().next().is_some_and(|c| c.is_ascii_digit() && c >= '5')
} else {
// K3+ — first char must be digit >= 3
- rest.chars().next().map_or(false, |c| c.is_ascii_digit() && c >= '3')
+ rest.chars().next().is_some_and(|c| c.is_ascii_digit() && c >= '3')
}
} else {
false
@@ -436,7 +436,7 @@ fn is_kimi_model(model: &str) -> bool {
}
pub fn supports_temperature(config: &AiConfig) -> bool {
- !(is_openai_api_config(config) && is_openai_reasoning_model(&config.model))
+ !(is_kimi_model(&config.model) || is_openai_api_config(config) && is_openai_reasoning_model(&config.model))
}
pub fn add_temperature_if_supported(body: &mut serde_json::Value, request: &AiCompletionRequest) {
diff --git a/packages/node-core/src/diagnostics.ts b/packages/node-core/src/diagnostics.ts
index c4562e9000..2b18f7d64c 100644
--- a/packages/node-core/src/diagnostics.ts
+++ b/packages/node-core/src/diagnostics.ts
@@ -20,6 +20,8 @@ export const BRIDGE_REQUIRED_TYPES = [
"sqlserver",
"oracle",
"elasticsearch",
+ "qdrant",
+ "milvus",
"etcd",
"dameng",
"kingbase",