Closed emrecanacikgoz closed 3 weeks ago
Hi @emrecanacikgoz , sorry, this is exampled is very outdated. We will be update it shortly, we will also remove a handful of other similarly outdated examples.
Meanwhile, check out our intro notebook, it has function calling examples.
Hi, thank you for the feedback! The fix is ready and will be merged into the main soon.
@emrecanacikgoz the example should work now, give it a try.
Hi, thank you for the contribution.
I am able to run the Canada example in readme. However, I cannot run both
examples/openai_function_calling.py
andexamples/openai_function_calling_demo.py
which gives the following error:In this case, it seems the API call didn't provide the role field for the first message (messages[0]), which is mandatory. Could you help me to fix it?