Based on https://platform.openai.com/docs/api-reference/embeddings, the input field should be either string or array type. I'm utilizing a client that's generating a 422 response from mlx-openai-server. I tried sending a sample request based on the openai docs:
❯ curl http://localhost:8000/v1/embeddings -H "Content-Type: application/json" -d '{"input":"embed this", "model": "mlx-community/all-MiniLM-L6-v2-4bit", "encoding_format": "float"}'
And I get the following response:
{"detail":[{"type":"list_type","loc":["body","input"],"msg":"Input should be a valid list","input":"embed this"}]}
When converting the input field to an array, it works successfully. However, this shows an incompatibility with the openai api specification