DEV Community

Cover image for Build a chatbot with the new OpenAI Assistant API and Function Calling

Build a chatbot with the new OpenAI Assistant API and Function Calling

Fernando González Tostado on November 14, 2023

Just a week has passed since the OpenAI Dev Conf 2023, and a surprising revelation unfolded: The Assistant's API. Unveiled in the latest OpenAI blo...
Collapse
 
arieltowne profile image
Ariel Towne

Your demonstration of the OpenAI Assistant API's capabilities in building a dynamic math assistant is intriguing. The incorporation of function calling and context maintenance adds a new dimension to user interactions. Your insightful exploration sets a promising path for creative applications.

Collapse
 
esponges profile image
Fernando González Tostado

I'm glad you liked it.

Collapse
 
crguezl profile image
Casiano Rodriguez-Leon

Great post! Thanks @esponges

The code can be found here github.com/esponges/openai-beta-as...

Collapse
 
esponges profile image
Fernando González Tostado

I'm glad you found it useful :)

Collapse
 
marcoalo profile image
Marco

This is a great post as always Fer!!!

Collapse
 
giopoi profile image
giovanni poidomani

running npm start I get these errors then nothing happens anymore:
PS C:\OpenAI\openai-beta-assistant-main> npm start
npm WARN config global --global, --local are deprecated. Use --location=global instead.

openai-assistant-test-nov23@1.0.0 start
ts-node assistant.ts

"ts-node" non è riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
PS C:\OpenAI\openai-beta-assistant-main>

Collapse
 
giopoi profile image
giovanni poidomani • Edited

However, this post is currently the only one I have found on the web and it has clarified my ideas, insteed I find the OpenAi documentation incomprehensible.

Collapse
 
esponges profile image
Fernando González Tostado

Yes, the OpenAI documentation is too generic. This post helped me to understand it much better.

I'm glad it was helpful!

Collapse
 
giopoi profile image
giovanni poidomani

ok, I was wrong, sorry!