hotfix
This commit is contained in:
parent
0a5522d28c
commit
7180ed9a60
|
@ -285,7 +285,9 @@ export class ClaudeApi implements LLMApi {
|
||||||
type: "tool_use",
|
type: "tool_use",
|
||||||
id: tool.id,
|
id: tool.id,
|
||||||
name: tool?.function?.name,
|
name: tool?.function?.name,
|
||||||
input: JSON.parse(tool?.function?.arguments as string),
|
input: tool?.function?.arguments
|
||||||
|
? JSON.parse(tool?.function?.arguments)
|
||||||
|
: {},
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
|
@ -215,7 +215,9 @@ export function stream(
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
funcs[tool.function.name](
|
funcs[tool.function.name](
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
JSON.parse(tool.function.arguments),
|
tool?.function?.arguments
|
||||||
|
? JSON.parse(tool?.function?.arguments)
|
||||||
|
: {},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue