Unable to intergrate ChatGPT with UiPath

I am trying to integrate ChatGPT with UiPath using http request activity.Once i have completed the setup using curl code and putting the API key. I get the following error.
Screenshot 2023-11-26 225221

i have tried creating multiple key but the result is the same.

This is what it looks like after importing the curl code:

I have tried using the same with different account where it worked fine. But its not working with my paid chatGPT account.

Also can anyone please help me with curl code for “gpt-4”.

Please provide some feedback.

@nitin.khedkar

Even the paid version has a rate limit of 50 messages for 3 hours…so may be you would have hit it…try after a time limit …

Also did you happen to first try with postman?

As per first error look slike rate limit is hit and as per second error either generated api is wrong or you copied paritially or provided it wrong

Cheers

Hello Anil thanks for responding. I have tried with postman as well i get the following error despite my multiple attempt to create API key and inserting those.

@nitin.khedkar

This looks like your api error only and not UiPath error…as it is not triggered through postman as well…

Please check the proper format and try again…

And i see a key but no value…you should give a proper value

Cheers