-
Notifications
You must be signed in to change notification settings - Fork 103
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
Issue using tools with Mistral Large model #265
Comments
Hello! It appears that the AWS Mistral Large models have started using Messages, unlike the older Mistral models that use Prompt strings. The current implementation of ChatBedrock will only pass Prompt strings to Mistral provider models thus causing ValidationError due to the Mistral Large Models expecting Messages instead of Prompt strings. If possible, I'd like to work on this issue and create a PR to add compatibility for ChatBedrock to use the Mistral Large chat models (along with the ability to tool call with that model). I have a plan to address this by following the structure of the request and converting Mistral responses accordingly. If there are additional details I should consider, please let me know. Thanks! |
Hi @HyphenHook - I think what you're saying might also apply to this other issue I opened regarding AI21 models. Please check. |
Oh I see. If BedrockLLM is going to be deprecated in favor of ChatBedrockConverse then I suppose ChatBedrock would probably be deprecated as well since ChatBedrock relies on the BedrockLLM code currently. If ChatBedrock is eventually going to be deprecated would there be any need to introduce support for the "new" models (like Mistral Large)? |
@HyphenHook |
@supreetkt |
Yes, with |
While trying to use tools with Mistral, here is a sample code for boto3 which works fine:
The request body using boto3 is:
However, while using
ChatBedrock
:The request body is (not including accept, contentType and modelId):
And I get the following
ValidationError
while usingChatBedrock
:Unfortunately, the error is not very descriptive from Bedrock, so its also difficult to debug. But the request body gives a fair indication between a boto3 and
ChatBedrock
request.The text was updated successfully, but these errors were encountered: