OpenAI integration

Hello I’m using openAI API in my workflow with valid key (plenty of prepaid credits), the process failed after running for 2 hours and I got "Generate Chat Completion: Unauthorized - An invalid connection id, and/or Bearer token provided. " error msg.
when I restart everything works again. Just want to see if this is normal or is there something I could do to prevent this from happening again. thank you

@Lynn_Song,

UiPath got GenAI activities which supports multiple models including OpenAI.

You can leverage this to avoid these errors.

Thanks,
Ashok :slightly_smiling_face:

Thank you! so the error msg is a bug or something? given the key is valid and working?

@Lynn_Song,

It’s due to your authentication token is getting expired every 2 hours.

Add logic to get the bearer token once you face this issue.

Thanks,
Ashok :slightly_smiling_face:

thank you so much for your quick response!!

1 Like

@ashokkarale I couldn’t find the GenAI package, how can I install it please?

@Lynn_Song,

You can refer this video for getting started with UiPath GenAI activities.

Do let me know if anything needed.

Thanks,
Ashok :slightly_smiling_face:

thank you so much! I set up the connector and installed the package but I couldn’t find those activities in studio, please help?

@Lynn_Song,

Check if the package is installed - Integration Service Activities

Refer this sample code.

GenAI Demo.zip (33.9 KB)

Thanks,
Ashok :slight_smile:

1 Like

Thank you so much for your kind help!

@Lynn_Song,

You are welcome!

Thanks,
Ashok :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.