fix(#5378): default plugin ids to empty array

This commit is contained in:
SukkaW
2024-09-07 21:32:18 +08:00
parent 2ff292cbfa
commit db58ca6c1d
3 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ export class MoonshotApi implements LLMApi {
const [tools, funcs] = usePluginStore
.getState()
.getAsTools(
useChatStore.getState().currentSession().mask?.plugin as string[],
useChatStore.getState().currentSession().mask?.plugin || [],
);
return stream(
chatPath,