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

[Bug]: Titan Embeddings fails when using the aws_bedrock_runtime_endpoint parameter #8219

Open
mwl38765 opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mwl38765
Copy link

mwl38765 commented Feb 3, 2025

What happened?

When specifying the aws_bedrock_runtime_endpoint parameter in the proxy settings for accessing the Titan Embedding model through Bedrock, the request fails. It looks like for some reason the aws_bedrock_runtime_endpoint parameter is being passed in the request to Titan, and therefore causes a validation error because that's not a valid parameter.

I even tried using the drop_params parameter, but that did not fix the error.

Here is the config.yaml file that I used (just using the regular bedrock-runtime URL as an example of this failing, but had same issue with other values):

litellm_settings:
    drop_params: True
model_list:
  - model_name: titan-embedding
    litellm_params:
      model: bedrock/amazon.titan-embed-text-v2:0
      aws_region_name: us-east-1
      aws_bedrock_runtime_endpoint: https://bedrock-runtime.us-east-1.amazonaws.com

Relevant log output

{"error":{"message":"litellm.BadRequestError: BedrockException - {\"message\":\"Malformed input request: extraneous key [aws_bedrock_runtime_endpoint] is not permitted, please reformat your input and try again.\"}\nReceived Model Group=titan-embedding\nAvailable Model Group Fallbacks=None","type":null,"param":null,"code":"400"}}

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.60.0

Twitter / LinkedIn details

No response

@mwl38765 mwl38765 added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant