FIX: do not error when tools are empty (#1218)

This commit is contained in:
Joffrey JAFFEUX 2025-03-26 10:42:43 +01:00 committed by GitHub
parent 913314b67d
commit 9a752eff29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ export default class AiPersona extends RestModel {
}
flattenedToolStructure(data) {
return data.tools.map((tName) => {
return (data.tools || []).map((tName) => {
return [tName, data.toolOptions[tName], data.forcedTools.includes(tName)];
});
}