carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.1k stars 231 forks source link

Support Apple MLX- LM #769

Open amirvenus opened 4 days ago

amirvenus commented 4 days ago

Describe the need of your request

You use mlx-lm to make an HTTP API for generating text with any supported model. The HTTP API is intended to be similar to the OpenAI chat API

It is very similar (if not the same as Ollama) however, the code completion bit is not working properly as it seems not to be able to get the stop token right

Proposed solution

No response

Additional context

More info:

https://github.com/ml-explore/mlx-examples/blob/main/llms/mlx_lm/SERVER.md