[gpt-4 error in UI Path] How I can use gpt-3.5 API in UI Path? (not gpt-4)

RequestId: 652ae3f0e4b04b36c812d562
ProviderMessage: error - {message=The model gpt-4 does not exist or you do not have access to it. Learn more: How can I access GPT-4? | OpenAI Help Center, type=invalid_request_error, param=null, code=model_not_found}, text -

Hello UI Path Users.
I had an error like above.
I don’t want to use gpt-4 (payment, and limited edition) but want to use gpt-3.5.

So, How I can use gpt-3.5 API in UI Path?
Thanks!


this is the capture that i got error.

@open_see

There is no direct activity for the same…

Go to openai page and check if there are api’s pointing to 3.5 and use them using http request activity. As far as I see you have only 4 and 3.5 turbo out of which both are chargeable

Cheers

Hello @open_see

  1. Get a GPT-3.5 API key from OpenAI.
  2. Use the “HTTP Request” activity in UiPath.
  3. Set the API endpoint to “https://api.openai.com/v1/engines/davinci” for GPT-3.5.
  4. Add an “Authorization” header with your API key.
  5. Provide the request body with your text or parameters.
  6. Process the response as needed in your UiPath workflow.

This allows you to use GPT-3.5 in UiPath instead of GPT-4.

Thanks & Cheers!!!