This commit is contained in:
Nate 2024-11-20 23:58:38 -08:00
parent 28952ba9ac
commit d9911a60e4
2 changed files with 5 additions and 6 deletions

View file

@ -59,7 +59,7 @@ class Anthropic extends BaseLLM {
type: "tool_use",
id: toolCall.id,
name: toolCall.function?.name,
input: JSON.parse(toolCall.function?.arguments ?? "{}"),
input: JSON.parse(toolCall.function?.arguments || "{}"),
})),
};
}
@ -173,7 +173,7 @@ class Anthropic extends BaseLLM {
]
: systemMessage,
}),
signal
signal,
});
if (options.stream === false) {

View file

@ -14,11 +14,10 @@ const Container = styled.div`
justify-content: center;
position: relative;
padding: 8px;
padding-bottom: 0;
`;
const ChildrenDiv = styled.div`
margin: 8px;
`;
const ChildrenDiv = styled.div``;
const W = 16;
@ -37,7 +36,7 @@ export function ThreadDiv(props: ThreadDivProps) {
style={{
width: `${W}px`,
height: `${W}px`,
fontWeight: "bold",
fontWeight: "bolder",
marginTop: "1px",
}}
>