Getting error in "Get text completion Using Anthropic" activity

Hello All, I am getting error while using the activity “Get Text Completion Using Anthropic” in UiPath studio 2023.4.4

it says “Bad request: often due to missing parameters”.

Below is the input I am sending

Max token to sample : 256
Temperature : 1
Top k : 5

The connection for amazon bedrock is setup fine in the orchestrator.

Any help is appreciated, Thanks in advance :slight_smile:

@pawandeepnanda

suggests that there may be an issue with the input parameters or settings you’re using for the “Get Text Completion Using Anthropic” activity in UiPath Studio 2023.4.4

Steps:

Check Parameter Values
Verify Integration with Amazon Bedrock
Ensure Orchestrator Permissions
Request and Response Format

@Dilli_Reddy

Thanks for your quick response

Check Parameter Values - I have used the default parameter values provided by bedrock
Verify Integration with Amazon Bedrock - Integration is successfully done in orchestrator
Ensure Permissions - Can you please elaborate what permissions need to be set in orchestrator for this
Request and Response Format - How do I configure request and response?

@pawandeepnanda

Permissions:

In Orchestrator, you typically need to create a service account or robot user with the necessary permissions to interact with external services or API’s
If the external service requires API keys or credentials, you need to store and manage them securely in Orchestrator.
Depending on the external service, you may also need to configure permissions within the service itself.

Request and Response Formats:

API endpoint, Authentication,HTTP method,Request headers,Request handling,Response format,Error handling.

@Dilli_Reddy

As I have mentioned above I am using the connector that is setup in the orchestrator.

It only needs the access key and id to connect with AWS, so that part is already taken care of.

The request being the input parameters which I have got from Bedrock and the response part I don’t think I can setup as the connection is taking care of that and I just need to pass a variable to get the output.

Im seeing the same error, but only when using Sonnet. If I use claude Instant v1 or Claude v2, the activity returns a completion. The error log indicates
"claude-3-5-sonnet-20240620" is not supported on this API. Please use the Messages API instead."
Which i think may indicate an issue with compatibility of the out of the box activity

UiPath confirmed the activity (which is in preview) is not compatible yet with the Sonnet model.