I'm encountering a BadRequestError from OpenAI's embeddings API while using semantic_router in my Python project. The error message suggests that '$.input' is invalid
openai.BadRequestError: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
` message_string = get_buffer_string(last_human_messsages, human_prefix="")
routes = create_routes(agents_rules)
rl = RouteLayer(encoder=encoder, routes=routes)
next_agent = rl(message_string)
I'm encountering a BadRequestError from OpenAI's embeddings API while using semantic_router in my Python project. The error message suggests that '$.input' is invalid
openai.BadRequestError: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.", 'type': 'invalid_request_error', 'param': None, 'code': None}}` message_string = get_buffer_string(last_human_messsages, human_prefix="")