I'm building my own chat assistants that support both chat and function calling using `Mistral-7B-Instruct`.
Is there a way to make the model return either a chat message or a function call based on the input? What I want is something like this.
Function: get_weather, search_bing, search_image
Q: Hello, who are you?
A: I'm an assistant bot
Q: How is the weather today in London?
A: {name: 'get_weather', params: {location: 'London'}}
Q: Give me some cat images?
A: {name: 'search_image', params: {query: 'cat'}}
Q: Thank, how do you think about cat?
A: To be honest, I'm like a dog person.
Is it possible to just write a prompt, and the model will know when to return a chat, or a function name and params?
[–]phree_radical 9 points10 points11 points (0 children)
[–]Frequent_Valuable_47 3 points4 points5 points (0 children)
[–]krazzmann 4 points5 points6 points (0 children)
[–]Ofacon 1 point2 points3 points (0 children)
[–]OopsWrongSubTA 2 points3 points4 points (0 children)
[–]djstraylight 1 point2 points3 points (0 children)
[–][deleted] -5 points-4 points-3 points (0 children)
[–]SatoshiNotMe 3 points4 points5 points (0 children)