Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added integration tests for meta #274

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

3coins
Copy link
Collaborator

@3coins 3coins commented Nov 6, 2024

Added integration tests for ChatBedrockConverse for Meta provider.

2 tests are primarily failing here.

  1. test_tool_calling, which is consistently returning a quoted string input value instead of an expected integer e.g., {input: '3'} instead of {input: 3}, thus failing the test. This needs further investigation to determine whether this is a bug with the Bedrock service or an expected behavior with Llama models when a numeric input is required.
  2. test_tool_message_histories_list_content, which is failing for several other providers as well, as Bedrock doesn't seem to allow conversation block and tool use blocks in the same turn.
    python botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the Converse operation: messages.1.content: Conversation blocks and tool use blocks cannot be provided in the same turn.

@3coins
Copy link
Collaborator Author

3coins commented Nov 6, 2024

cc @cab938 @Forma-Lin

@3coins 3coins marked this pull request as ready for review November 6, 2024 21:36
@3coins 3coins merged commit d25b78e into langchain-ai:main Nov 8, 2024
12 checks passed
ccurme added a commit that referenced this pull request Nov 21, 2024
Recently added an async variant of the tool calling test.

This appears to be a known issue for the Meta provider (see
#274).
@3coins 3coins deleted the add-meta-integ-tests branch December 4, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant