Closed localmind-ai closed 3 months ago
Although functions are deprecated in OpenAI API, they are still supporting it as of now. Thus, we are also supporting it currently. If you would like to use tools, you can change to making the request with tools
instead of functions
(your API call is calling with functions
, not tools
). We support API requests with either tools
or functions
, just like OpenAI API.
Okay, I see! Thank you a lot @jeffrey-fong, I just double checked and verified that I used the old way of API calling which is why I got the "old-way response". Doing it the more recent way gave me the correct results. Thanks, will close this now.
Hi @khai-meetkai - we're currently evaluating the larger functionary model based on Llama 3.1 70B and are wondering if the vLLM-based API implementation is correct. For the same API call (an example I have taken from here), I get the following responses:
Functionary's Response
Discrepancy between OpenAI Functions and Tools
If I'm not mistaken, functions are deprecated and tool calls used instead. See this example snippet:
Is this going to be considered in the template at some point? Thanks a lot!