File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export class ClaudeApi implements LLMApi {
203
203
const [ tools , funcs ] = usePluginStore
204
204
. getState ( )
205
205
. getAsTools (
206
- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
206
+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
207
207
) ;
208
208
return stream (
209
209
path ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class MoonshotApi implements LLMApi {
125
125
const [ tools , funcs ] = usePluginStore
126
126
. getState ( )
127
127
. getAsTools (
128
- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
128
+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
129
129
) ;
130
130
return stream (
131
131
chatPath ,
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export class ChatGPTApi implements LLMApi {
244
244
const [ tools , funcs ] = usePluginStore
245
245
. getState ( )
246
246
. getAsTools (
247
- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
247
+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
248
248
) ;
249
249
// console.log("getAsTools", tools, funcs);
250
250
stream (
You can’t perform that action at this time.
0 commit comments