Can't connect to oMLX inference server #1351
|
Howdy, Running oMLX (https://omlx.ai/), which is by far the best inference server I have seen so far, but I'm having problems connecting to it via the available smart chat/smart plugin config options for chat models. I have tried modifying ollama, lm_studio, and LiteLLM configs without success. It's pretty easy to access: http://127.0.0.1:8000/v1 plus an API key.... but I'm not having any luck. I will get a successful connection, but I don't get anything back from the server. I can curl it just fine. thanks! |
Replies: 3 comments 4 replies
|
Similar question: I want to use MLX embedding using a local LLM. There used to be a way to specify a local OPENAI standard URL, which would allow me to use mlx-serve-embeddings. I now have tried oLMX, also, and if I try to use the Ollama connection for embedding, it doesn't get the list of models available (because, I guess, you're using Ollama specific endpoints). Really, how can I use local MLX models with Smart Connections? Please help. (Yes, I have PRO version) |
|
I found the fix. Configure Chat Model using the following:
|
|
I got it (for Chat)! The fix is to do what you say, above... but the LiteLLM base URL must be the "OpenAI API" version, NOT the general URL! However, the embedding doesn't give access to LiteLLM — basically an OpenAI server — so we still cannot use MLX embedding via oMLX. |

I found the fix.
Configure Chat Model using the following: