OpenAI API Function Calling -  Hands-on Tutorial for AI Developers!

OpenAI API Function Calling - Hands-on Tutorial for AI Developers!

1littlecoder

1 год назад

16,018 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

sandip parida
sandip parida - 29.08.2023 21:42

you are the best my bro

Ответить
popothebright
popothebright - 06.07.2023 11:14

Can you discuss how to do this from scratch without the python library? What are the API calls?

Ответить
mpfmax0
mpfmax0 - 29.06.2023 16:40

I have been using the chat completion api to get gpt-3.5-turbo to output JSON strings with the aspect, sentiment and text segment of product reviews, which I then use to build dataframes and make aspect based sentiment analysis plots and stats. I just send it 5 examples of user/assistant answer/response as a prompt. I wonder if using this would make the outputs more reliable/accurate?

I want to understand what is the best way to conduct aspect based sentiment analysis using GPT models with openai api.

Ответить
jisanson
jisanson - 21.06.2023 17:37

could be a dumb question, but why are we not seeing an actual temperature value in the response? is it possible to get that also?

Ответить
Mate Marschalko
Mate Marschalko - 21.06.2023 09:53

Interestingly, the assistant seems to just use the function output almost "as is". I'm unable to get the assistant to use the function output as context only and focus on the users actual question...

Example: my function returns all the information about a property, and the assistant seems to just output the whole block of information instead of using it as a context/knowledge base to answer the users question. Nothing I put in the system message affects how the assistant uses the information from the function call.

Any idea how this could be achieved?

Ответить
Laptop user
Laptop user - 21.06.2023 00:38

This video is the first video link on google when searching "openai function calling"

Ответить
startup bug
startup bug - 20.06.2023 16:04

Chat response 404 coming hence not able to move forward??

Ответить
SH
SH - 18.06.2023 12:35

Not working

Ответить
sidharth mehra
sidharth mehra - 17.06.2023 07:18

Thanks for the informative video. I want to build a chatbot for my mobile application that helps users in health management. The purpose would be simply to help users with app navigation and education. I don't have any data and all tables are there in phpMyadmin. I want to use these tools like langchain, openAI and LLM's to develop my chatbot. Any help and guidance would be much appreciated.

Regards
Sid

Ответить
Helix
Helix - 16.06.2023 04:04

They need to change the cost for tokens within Functions, they did make it cheaper for the 4k version but reading code can be a lot of tokens.

Ответить
Steve Fox
Steve Fox - 15.06.2023 18:33

Great demo as always. Feels like OpenAI's name "Chat GPT Functions" is a little misleading. But I am not sure I can come up with a name 😂.But very cool functionality.

Ответить
Aditya Pedagada
Aditya Pedagada - 15.06.2023 17:44

What is the alternative thing available in langchain

Ответить
Imran Ali
Imran Ali - 15.06.2023 15:26

@Perfect Video

Ответить
menisnothing
menisnothing - 15.06.2023 15:20

It could be that its inferring your location rather than the location in input. Try tweaking the description in the function for that parameter. Description plays important role in functions

Ответить
Foysal Mamun
Foysal Mamun - 15.06.2023 14:51

Thank you

Ответить
zyxwvutsrqponmlkh
zyxwvutsrqponmlkh - 15.06.2023 11:12

All these months later and I still cant get gpt4 api. I think openai knows I secretly hate them.

Ответить
Kevin Kreger
Kevin Kreger - 15.06.2023 10:31

He's back! 🤩 and I was just working on function calls too!

Ответить
Rahul Hirondi
Rahul Hirondi - 15.06.2023 09:47

Your delivery & content are really amazing... Great work!!

Ответить
SloanMosley
SloanMosley - 15.06.2023 09:46

It’s very…. Functional 😂

Ответить