Skip to content

OpenAI API #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chigkim opened this issue Mar 15, 2025 · 5 comments
Open

OpenAI API #247

chigkim opened this issue Mar 15, 2025 · 5 comments

Comments

@chigkim
Copy link
Contributor

chigkim commented Mar 15, 2025

It would be great if we could use mlx-vlm with ml-explore/mlx-examples/llms/mlx_lm.server that has OpenAI API!
Thanks!

@Blaizzy
Copy link
Owner

Blaizzy commented Mar 15, 2025

Working on it :)

This is related to #241

@cubist38
Copy link

hi @chigkim

I’ve developed a lightweight mlx-server-OAI-compat that supports multimodal capabilities while maintaining compatibility with OpenAI APIs. Feel free to try it out ahead of the official release!

@chigkim
Copy link
Contributor Author

chigkim commented May 9, 2025

Hi @Blaizzy, just curious if there’s been any progress on OpenAI API support? Ideally, it’d be great to integrate it directly into MLX-LM.server, so users wouldn’t need to run two separate servers.
It’d be amazing if users could handle audio, text, and vision all through one server, similar to how OpenAI’s API lets you access all model types through a single endpoint.
Then it would be super easy to migrate existing projects/tutorial based on OpenAI to MLX!
Thanks for all your work!

@Blaizzy
Copy link
Owner

Blaizzy commented May 9, 2025

Hey @chigkim

The OpenAI API support is done for mlx-vlm in #321

However, I understand the need for a more complete and cohesive solution. That's why I had built FastMLX :). But it got sold off to my previous employer and "died".

Need not to worry, I have been working on something better.

@chigkim
Copy link
Contributor Author

chigkim commented May 9, 2025

Oh cool! Since #321 with OpenAI endpoint is merged, should we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants