64bit / async-openai

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

How to call async function through function-call #215

Closed moom-en closed 4 months ago

frankfralick commented 4 months ago

Use these as an example, depending on whether or not you are dealing with streaming or not:

https://github.com/64bit/async-openai/blob/main/examples/tool-call/src/main.rs

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

moom-en commented 4 months ago

Okay, thanks, I'll take a look again