Hi, I’ve successfully set up a custom custom GPT model with a custom action to retrieve information from an external API, which works fairly well, though it has occasional issues (but that’s a separate matter).

I’m now attempting to create a similar assistant in the OpenAI Playground to be used via API, but I’m struggling to configure a custom action in the same manner as I did with ChatGPT. When I try to replicate the JSON configuration from the custom actions in my GPT-3 model, I get an “Invalid JSON” error.

I’ve loaded an example JSON of actions in the Playground, but it’s not clear how to set up the external API call.

Additionally, I’m looking to build an assistant that fetches a product list from my API and makes recommendations to the user based on that list.

Where shoud I to configure the call to my API?

Thanks.



1 Like

The AI doesn’t call APIs or access the web.

It returns a function call specification back to you.

What you do with the text {"location": "Pismo Beach", "unit": "c"} is up to you.



1 Like

But in ChatGPT you can do it. Why with API you can’t? Maybe It’ll be a future functionality?



1 Like



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *