dexaai / dexter

LLM tools used in production at Dexa
https://dexter.dexa.ai
MIT License
69 stars 4 forks source link

Streaming broken for `createAIFunction()` in `tools` mode #41

Open rileytomasek opened 1 month ago

rileytomasek commented 1 month ago

The chunks for tool calls aren't properly managed by handleUpdate() in ChatModel.

rileytomasek commented 1 month ago

@colelawrence making deepMerge() able to properly merge objects that contain arrays of tool call objects will also solve this issue. I think we just need a custom version of mergeArray() that we can add when calling the deepMerge init function.