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(ai): align aiAgentStream JSON field names with server camelCase expectation

t8y235f03a07b322
diff --git a/apps/desktop/src/lib/http.ts b/apps/desktop/src/lib/http.ts
index 7efcd5331d..bd1b245d9a 100644
--- a/apps/desktop/src/lib/http.ts
+++ b/apps/desktop/src/lib/http.ts
@@ -805,7 +805,7 @@ export async function aiAgentStream(sessionId: string, request: AiCompletionRequ
const res = await fetch("/api/ai/agent-stream", {
method: "POST",
headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ session_id: sessionId, request, connection_id: connectionId, database, db_type: dbType, mode: mode || "ask" }),
+ body: JSON.stringify({ sessionId, request, connectionId, database, dbType, mode: mode || "ask" }),
signal,
});
if (!res.ok) throw new Error(await res.text());