FIX: do not error when tools are empty (#1218)
This commit is contained in:
parent
913314b67d
commit
9a752eff29
|
@ -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)];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue