@yeaft/webchat-agent 1.0.353 → 1.0.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +127 -118
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/yeaft/config-api.js +5 -0
|
Binary file
|
package/package.json
CHANGED
package/yeaft/config-api.js
CHANGED
|
@@ -37,6 +37,7 @@ function readLocalLlmConfig(dir) {
|
|
|
37
37
|
primaryModel: json.primaryModel || null,
|
|
38
38
|
fastModel: json.fastModel || null,
|
|
39
39
|
language: json.language || 'en',
|
|
40
|
+
debug: json.debug === true,
|
|
40
41
|
needsSetup: providers.length === 0 || providers.every(p => p.apiKey === 'proxy' || p.apiKey === '' || (!p.apiKey && !p.credentialProvider)),
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -174,6 +175,9 @@ export function updateLlmConfig(update, dir) {
|
|
|
174
175
|
if (update.language !== undefined) {
|
|
175
176
|
existing.language = update.language;
|
|
176
177
|
}
|
|
178
|
+
if (update.debug !== undefined) {
|
|
179
|
+
existing.debug = update.debug === true;
|
|
180
|
+
}
|
|
177
181
|
|
|
178
182
|
// Write back
|
|
179
183
|
try {
|
|
@@ -187,6 +191,7 @@ export function updateLlmConfig(update, dir) {
|
|
|
187
191
|
primaryModel: existing.primaryModel || null,
|
|
188
192
|
fastModel: existing.fastModel || null,
|
|
189
193
|
language: existing.language || 'en',
|
|
194
|
+
debug: existing.debug === true,
|
|
190
195
|
};
|
|
191
196
|
return {
|
|
192
197
|
...agentConfig,
|