Logo

openai

#10050

input_validation_error

Invalid format: Input does not match the required pattern. Please ensure it adheres to the allowed character set and length constraints.

This error has been identified and solved.

Reason

The error you are encountering, 'Browse graph' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'tools.0.function.name', indicates that the name of the function or tool you are trying to use does not comply with the expected format specified by the OpenAI API.

Specifically, the error message suggests that the name "Browse graph" contains characters (in this case, a space) that are not allowed according to the regex pattern ^[a-zA-Z0-9_-]{1,64}$. This pattern only permits letters (both uppercase and lowercase), numbers, underscores, and hyphens, and the name must be between 1 and 64 characters long. The presence of a space in "Browse graph" violates this requirement.

Solution

To fix the error, you need to ensure the function or tool name complies with the specified format. Here are the necessary steps:

  • Replace the space in "Browse graph" with an allowed character, such as an underscore or a hyphen.

  • Ensure the name does not exceed 64 characters.

Here are some corrected versions of the name:

  • "Browse_graph"

  • "Browse-graph"

Original Error Message

Raw

Invalid format: Input does not match the required pattern. Please ensure it adheres to the allowed character set and length constraints.

Original Error Message

Raw

Invalid format: Input does not match the required pattern. Please ensure it adheres to the allowed character set and length constraints.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →