Hi,I am using the langchain and openAI API and i am getting the below issue May i know the what this issue is
"openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: “‘$.messages[90].content’ is invalid.'”
2 Likes
That means that there is an issue with processing the request. Check that every setting is correct!
1 Like
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: “‘How did you obtain my contact details?’ is not of type ‘array’ - ‘messages’”, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}
What kind of issue? If you could please specify.