3 ms·
OpenAI released a new gpt-4 model on June 13 https://openai.com/blog/function-calling-and-other-api-updates https://openai.com/blog/function-calling-and-other-a
by reissbaker 3y ago
OpenAI released a new gpt-4 model on June 13 https://openai.com/blog/function-calling-and-other-api-updates https://openai.com/blog/function-calling-and-other-api-updat..., and they update gpt-4 to the latest version every two weeks (aka, gpt-4 switched over to the -0613 on June 27).
The -0613 version is really different! It added function calling to the API as a hint to the LLM, and in my experience if you don't use function calling it's significantly worse at code-like tasks, but if you do use it, it's roughly equivalent or better when it calls your function.
- rrrrrrrrrrrryan 3y agoCan I ask how you use this function calling in your workflow? Any examples?
- TeMPOraL 3y agoSeconded. In particular, how does function calling help restore performance in general prompts like: "Here's roughly what I'm trying to achieve: <bunch of requirements> Could you please write me such function/script/whatever?". Maybe I lack the imagination, but what function should I give to the LLM? "insert(text: string)"?
- reissbaker 3y agoFor sure! Here's one example where I have it generate SQL (scroll through the thread, the function API is the second tweet): https://twitter.com/reissbaker/status/1671361372092010497 https://twitter.com/reissbaker/status/1671361372092010497 For generating arbitrary code, I imagine you could do the same thing but swap `query_db` with the name `exec_javascript` or something similar based on your preferred language.