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 {
203203 const [ tools , funcs ] = usePluginStore
204204 . getState ( )
205205 . getAsTools (
206- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
206+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
207207 ) ;
208208 return stream (
209209 path ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class MoonshotApi implements LLMApi {
125125 const [ tools , funcs ] = usePluginStore
126126 . getState ( )
127127 . getAsTools (
128- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
128+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
129129 ) ;
130130 return stream (
131131 chatPath ,
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export class ChatGPTApi implements LLMApi {
244244 const [ tools , funcs ] = usePluginStore
245245 . getState ( )
246246 . getAsTools (
247- useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin as string [ ] ,
247+ useChatStore . getState ( ) . currentSession ( ) . mask ?. plugin || [ ] ,
248248 ) ;
249249 // console.log("getAsTools", tools, funcs);
250250 stream (
You can’t perform that action at this time.
0 commit comments