64bit / async-openai

Rust library for OpenAI
https://docs.rs/async-openai
MIT License
1.09k stars 161 forks source link

&chat_choice.delta.function_call in the function-call-stream example has been deprecated #214

Closed moom-en closed 4 months ago

moom-en commented 4 months ago

If so, which one should be used instead? image

frankfralick commented 4 months ago

Use "tool_calls". They can call more than one at a time, so you have to deal with a list of possible parallel tool calls. Look at the tool-call-stream example:

https://github.com/64bit/async-openai/blob/f70ed12e337d8ba21987cd14d7013419a75bc36a/examples/tool-call-stream/src/main.rs#L58-L98

moom-en commented 4 months ago

Okay, thanks, I'll take a look again