feat(ai): support multiple configurations and models

This commit is contained in:
lexmin0412 authored and GitHub committed 2026-07-16 17:59:40 +08:00
1 parent 5d2a363786
commit dd3a2e30a4
29 files changed
+1728 -500

No files matched your search

+2
View File
@@ -7,11 +7,13 @@ const patterns: [RegExp, string][] = [
[/^Custom Java runtime path is empty\. Please choose a Java executable\.$/, "connection.customJavaPathEmpty"],
[/^Agent requires Java 21, but DBX started it with an older Java runtime\. Use DBX managed JRE 21 or select a Java 21 executable in Driver Manager\./, "connection.agentJavaTooOld"],
[/^JDBC plugin is not installed\. Install the optional JDBC plugin to use this connection\.$/, "connection.jdbcPluginNotInstalled"],
[/^ai\.configNameExists:(.+)$/, "ai.configNameExists"],
];
const paramNames: Record<string, string> = {
"connection.driverNotInstalled": "driver",
"connection.jreNotInstalled": "jre",
"ai.configNameExists": "name",
};
export function translateBackendError(t: ComposerTranslation, message: string): string {