Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated last year
0
Follow
Function calling
Function calling
Inactive
0
Follow
F
Fran Piantoni
last year
Β·
Is there another example (more complex) on function calling with OpenAi?
I only found this :
https://gpt-index.readthedocs.io/en/stable/examples/llm/openai.html#function-calling
L
F
6 comments
Share
Open in Discord
L
Logan M
last year
What would be more complex? I feel like that example tells your everything you'd want to know?
F
Fran Piantoni
last year
Like, making the model decide weather it needs to call the funcion or only give a response. (From what the user sends as a prompt)
L
Logan M
last year
That example already does that π
For example, if you just send "Hello!" instead, it won't call the function
L
Logan M
last year
This is exactly how the OpenAIAgent works too
F
Fran Piantoni
last year
Ok!! Do you recomend using OpenAIAgent with context if i am trying to make some function calling depending on the input prompt?
L
Logan M
last year
the with-context version uses extra information from an index to help pick which tool to use. tbh I think the base OpenAIAgent is good enough in most cases, but it depends π
Add a reply
Sign up and join the conversation on Discord
Join on Discord