mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
Compare commits
3 Commits
2ff292cbfa
...
23ac2efd89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23ac2efd89 | ||
|
|
daeffb2dc6 | ||
|
|
db58ca6c1d |
@@ -203,7 +203,7 @@ export class ClaudeApi implements LLMApi {
|
|||||||
const [tools, funcs] = usePluginStore
|
const [tools, funcs] = usePluginStore
|
||||||
.getState()
|
.getState()
|
||||||
.getAsTools(
|
.getAsTools(
|
||||||
useChatStore.getState().currentSession().mask?.plugin as string[],
|
useChatStore.getState().currentSession().mask?.plugin || [],
|
||||||
);
|
);
|
||||||
return stream(
|
return stream(
|
||||||
path,
|
path,
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export class MoonshotApi implements LLMApi {
|
|||||||
const [tools, funcs] = usePluginStore
|
const [tools, funcs] = usePluginStore
|
||||||
.getState()
|
.getState()
|
||||||
.getAsTools(
|
.getAsTools(
|
||||||
useChatStore.getState().currentSession().mask?.plugin as string[],
|
useChatStore.getState().currentSession().mask?.plugin || [],
|
||||||
);
|
);
|
||||||
return stream(
|
return stream(
|
||||||
chatPath,
|
chatPath,
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
const [tools, funcs] = usePluginStore
|
const [tools, funcs] = usePluginStore
|
||||||
.getState()
|
.getState()
|
||||||
.getAsTools(
|
.getAsTools(
|
||||||
useChatStore.getState().currentSession().mask?.plugin as string[],
|
useChatStore.getState().currentSession().mask?.plugin || [],
|
||||||
);
|
);
|
||||||
// console.log("getAsTools", tools, funcs);
|
// console.log("getAsTools", tools, funcs);
|
||||||
stream(
|
stream(
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ export const usePluginStore = createPersistStore(
|
|||||||
|
|
||||||
getAsTools(ids: string[]) {
|
getAsTools(ids: string[]) {
|
||||||
const plugins = get().plugins;
|
const plugins = get().plugins;
|
||||||
const selected = ids
|
const selected = (ids || [])
|
||||||
.map((id) => plugins[id])
|
.map((id) => plugins[id])
|
||||||
.filter((i) => i)
|
.filter((i) => i)
|
||||||
.map((p) => FunctionToolService.add(p));
|
.map((p) => FunctionToolService.add(p));
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "NextChat",
|
"productName": "NextChat",
|
||||||
"version": "2.15.0"
|
"version": "2.15.1"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
Reference in New Issue
Block a user