Anthropic AI not returning Output completion

Goal
I have events on calendar and i want to use anthropic ai to generate dynamic birthday messages for the names (events) on the calendar.

Scenario


What is working :
I used search events to look for events on the calendar which worked fine and no issue with that.

Issue
Now the problem is when i used Anthropic ai or open ai, the completion is not always complete and i thought the max token could be the cause so i increase it but still when i run it, i gets the incomplete output.

Welcome to the Make community!

Can you show us what the “incomplete output” looks like?

1. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

2. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.json file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

blueprint (6).json (9.2 KB)

Output Bundle
[
{
“completion”: " Here is a draft birthday message for Clement Miheso from Cyplyx:\n\nDear Clement,\n\nHappy birthday! We hope this special day brings you lots of happiness, joy and reasons to smile. May the year ahead be filled with",
“stop_reason”: “max_tokens”,
“model”: “claude-2.1”,
“stop”: null,
“log_id”: “e9735219c55d31f4eaed9cb548f62c17da908e29a5405b7e5b485c5ea4656142”
}
]

I think 50 tokens is way too low to generate anything useful. Try 1000 or 10000.

2 Likes

Yes increasing the token did the magic.But then again, another issue popped up.I don’t need to show the completion introduction in my message to the users. I highlighted that message with red

@samliew Thank you so much for your support. Can you help me with the issue i highlighted in red ?

No problem, glad I could help!

In future, please create a new thread for each question. This makes it easier for others with the same problem to search for the answer. Thank you for your cooperation!

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

2 Likes

I sure will. Thank you

2 Likes