Skip to content

[BUG] You're NOT Crazy the Published API Doesn't Support Inference models and Returns false success #771

Open
@Peter-Lankton

Description

@Peter-Lankton

🚨 Please Note 🚨

To ensure efficient investigation of the issue, please fill out the fields below with as much detail as possible. Reports that do not follow this template may be closed without notification. We appreciate your cooperation.

🐞Describe the bug

The published API code uses 'ConverseStream' operation which is not supported by Anthropic Models

Image

🔄 To Reproduce

Steps to reproduce the behavior:

  1. Create a bot
  2. Publish it
  3. POST to the '/conversation' endpoint with any anthropic model, my screenshots use claude-v3.5-sonnet-v2
  4. The response will lie and say 'success' here's your ConversationId and MessageID
  5. Go to SQS queue and see that there's no messages waiting and there's none in flight
  6. Go to DynamoDB and see that nothing was created

📷 Screenshots

1. ERROR with Anthropic Model

1.a POST Message with Model
Image

1.b Error Logs on SQS Handler Lambda
Image

2. Success with non anthropic model

2.a POST Message with Amazon Nova model
Image

2.b SUCCESS Logs on SQS Handler Lambda

Image

🔎 Logs for Chat Issues

n.a.

🔎 Logs for Bot Creation/Update Issues

n.a.

📝 Additional context

This was a tough bug to hunt down with the response saying it was successful on endpoint, but failing during the execution of the SQS Lambda which is a container image, so can't look at code in a straightforward manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestidentifiedIndicates that the root cause of the bug has been determined.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions