handle the case of a prompt with no function to call.

by mghafiri - opened


I would like to thank you for the great effort you have done to deliver this master piece of model.
I have done many experiments with it, and it perform really well.

But when I pass a prompt with no associated function to call such as "what time is it" and I don't have a function to get the time, it tries to return always a function call from the list of available functions, instead of saying "no function to call".

Thank you once agian.

Hi mghafiri,

Thank you so much for your interest in the model! One approach for this is to add a "noop"or "irrelevant" function in the list of functions with the docstring describing the function is to be called when no other functions are relevant or are useful to answer the user query. Some variation of that approach might work well.

Thank you again for your interest!

Hello, I tried that solution to handle no function call but model calls random input for example noob_function("hello") or noob_function(null=null).

At the function definition I just added noob_function(*args, **kwargs) to accept all possible function parameters, it works way better.

I just want to share it. BTW perfect work, such a great result, one of the best models on HuggingFace in my opinion!

Thank you so much for the feedback, Ismail! I will update the README for the model with this tip!

I used this model in this little contribution:

A chatbot with service calling capabilities and Open Mind Mode :)

Sign up or log in to comment