remove no need code
This commit is contained in:
parent
7180ed9a60
commit
6ab6b3dbca
|
@ -205,7 +205,6 @@ export class ClaudeApi implements LLMApi {
|
||||||
.getAsTools(
|
.getAsTools(
|
||||||
useChatStore.getState().currentSession().mask?.plugin as string[],
|
useChatStore.getState().currentSession().mask?.plugin as string[],
|
||||||
);
|
);
|
||||||
console.log("getAsTools", tools, funcs);
|
|
||||||
return stream(
|
return stream(
|
||||||
path,
|
path,
|
||||||
requestBody,
|
requestBody,
|
||||||
|
|
|
@ -127,7 +127,6 @@ export class MoonshotApi implements LLMApi {
|
||||||
.getAsTools(
|
.getAsTools(
|
||||||
useChatStore.getState().currentSession().mask?.plugin as string[],
|
useChatStore.getState().currentSession().mask?.plugin as string[],
|
||||||
);
|
);
|
||||||
console.log("getAsTools", tools, funcs);
|
|
||||||
return stream(
|
return stream(
|
||||||
chatPath,
|
chatPath,
|
||||||
requestPayload,
|
requestPayload,
|
||||||
|
|
|
@ -410,7 +410,6 @@ export const useChatStore = createPersistStore(
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onAfterTool(tool: ChatMessageTool) {
|
onAfterTool(tool: ChatMessageTool) {
|
||||||
console.log("onAfterTool", botMessage);
|
|
||||||
botMessage?.tools?.forEach((t, i, tools) => {
|
botMessage?.tools?.forEach((t, i, tools) => {
|
||||||
if (tool.id == t.id) {
|
if (tool.id == t.id) {
|
||||||
tools[i] = { ...tool };
|
tools[i] = { ...tool };
|
||||||
|
|
Loading…
Reference in New Issue