Function calling in node js

Hi guys. I know this is pretty early but does anybody have good code examples with function calling in node js?
At the moment in github there are only 4 matchs.
Would love to see examples with people who who are smarter than me.
Thanks! :slight_smile:

To be honest, I haven’t been using the openai package in quite a while now. I’m having much better results just using axios directly.

maybe this first step could clear up some hangups?

With function calling? Could you show me?

I don’t claim to be smarter than you nor can say if my code example is any good lol but here’s mine, using Next.js.

3 Likes

Thanks for sharing.
Curious though. Do you really need to put eg in every parameter description?

I am not sure. I just followed the sample code OpenAI gave and thought maybe it will be used as some sort of like few shot prompt internally.

2 Likes

Try this. Complete demonstration to return time and weather using API calls.

5 Likes

Hey Shaneski
Thank you very much for your public repo, is there a way to contact you privately? In case you answer questions i would love to have a short back and forth.

Best
Dominik