by oezi · 2y ago · 0 comments
And even if they did, it would be poor UX to have the user have to visit our site first to connect their API accounts.
I also imagine many tools wouldn't run under the developers' control (of course you could relay over your server).
This implementation of function calling works differently from those.
OpenAI/Anthropic don't make any API calls themselves at all here. You call their chat APIs with a list of your own available functions, then they may reply to you saying "run function X yourself with these parameters, and once you've run that tell us what the result was".
This is useful for more than just tool usage - it can help with structured data extraction too, where you don't execute functions at all: https://til.simonwillison.net/gpt3/openai-python-functions-d...
How? There is no execution model. The LLM simply responds, in JSON format, with the name of a function and its corresponding arguments in alignment with the JSON Schema spec you provided beforehand. It is entirely on you to do something with that information.
At the end of the day it is really not all that different to asking an LLM to respond with JSON in the prompt, but offers greater stability in the response as it will strictly adhere to the spec you defined and not sometimes go completely off the rails with unparseable gobbledygook as LLMs are known to do.
Requests you make to the service providers are made on your own buck, you are supposed to track user stuff on your end. It would make no difference chatgpt wise who the user is, that's not part of the abstraction provided.
Not a user auth SaaS, an LLM SaaS.
Like when you use an online PDF editor with Google Drive integration - paying for the storage etc is between Google and the user, the files belong to the user's Google Drive account, but the PDF editor gets read/write access to them.