I’m new with GPTs and Assistant API. In my use case I would like to use function calls to access an external API which uses Oauth2 authentication. I went through all available documentations and blog posts but found nothing about how it is possible. I’ve found in some of the docs that it is possible for custom GPTs but I’d like to archive it via Assistant API calls.
Yes, the Assistants API can be made to consume any outside data sources using function calling.
Assistants API is a developer product as opposed to ChatGPT which is OpenAI’s user product.
Hence, you’ll have to build your own authentication flow.
You can do this either by asking to user to finish OAuth before they proceed to use the assistant or you can implement a function that assistant can call when it detects that it needs to consume the data source that you have shared with it.