Logo

together-ai

#10558

model_input_error

The selected model does not support image inputs.

This error has been identified and solved.

Reason

The 400 status error in the TogetherAI API, indicating a "Bad Request," in this context is likely due to the following reasons:

Incorrect Model Type

The target model you are using is not a vision model, which means it is not designed to handle image inputs. This mismatch between the model type and the input type (image) is a primary cause of the error.

Data Schema Violations

The structure and format of the data sent in the request (specifically, including image inputs) do not comply with the data schema defined for the model you are using. Since the model does not support image inputs, the request violates the expected data schema.

Solution

To fix the 400 status error in the TogetherAI API, you can take the following steps:

Ensure you are using a model that is compatible with the type of input you are providing. Here are some key actions to consider:

  • Use the correct model type: Switch to a model that supports the input type you are using, such as a vision model if you are sending image inputs.

  • Check the API documentation: Review the TogetherAI API documentation to ensure your request adheres to the expected format and parameters for the specific model.

  • Remove unsupported inputs: If the model does not support image inputs, remove these from your request to avoid data schema violations.

  • Verify input format: Ensure that the structure and format of your input data comply with the defined schema for the model you are using.

Original Error Message

Raw

The selected model does not support image inputs.

Original Error Message

Raw

The selected model does not support image inputs.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →