Skip to content

Commit

Permalink
Add toolCalls to InferenceChatCompletionEvent in LLM simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoliduena committed Dec 9, 2024
1 parent 85e4cfb commit 2355ca4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function createLlmSimulator(subscriber: any) {
subscriber.next({
type: InferenceChatCompletionEventType.ChatCompletionMessage,
content: msg.content,
toolCalls: msg.function_call ? [{ function: msg.function_call }] : [],
});
},
tokenCount: async ({
Expand Down

0 comments on commit 2355ca4

Please sign in to comment.