spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Can I contribute vLLM model support to Spring AI?

Open ops-jaeha opened this issue 1 year ago • 4 comments

Expected Behavior

I would like to contribute a new model integration for vLLM, a fast and memory-efficient inference engine for LLMs.
This new model implementation would enable Spring AI users to connect to a vLLM backend more directly and cleanly, similar to existing integrations with OpenAI and Hugging Face.

Current Behavior

Currently, Spring AI does not offer native support for vLLM.
While it is technically possible to connect to a vLLM backend by customizing the OpenAI model implementation, this approach is not ideal—it requires workarounds and results in less maintainable and reusable code.

Context

I'm currently working on a project that uses vLLM for high-performance inference and would benefit from tighter integration with Spring AI’s abstractions and tooling.
Before proceeding with the implementation and contributing a PR, I’d like to check if the Spring AI team is open to a contribution that adds dedicated support for vLLM.

Are there any existing plans or previous discussions around this? If not, I’d be happy to explore it further and share a prototype.

ops-jaeha avatar Jul 22 '25 12:07 ops-jaeha

We are now using Spring AI to call VLLM through the API of OpenAI Starter, which is a compromise. If Spring AI could provide a pluggable vllm starter like Ollama, it would be an effective improvement.

Lincoln-cn avatar Jul 28 '25 09:07 Lincoln-cn

We are now using Spring AI to call VLLM through the API of OpenAI Starter, which is a compromise. If Spring AI could provide a pluggable vllm starter like Ollama, it would be an effective improvement.

Using OpenAI to link to VLLM, may I ask if your tool call is normal? The tool call here is not normal.

jichengda avatar Sep 19 '25 07:09 jichengda

We are now using Spring AI to call VLLM through the API of OpenAI Starter, which is a compromise. If Spring AI could provide a pluggable vllm starter like Ollama, it would be an effective improvement.

Using OpenAI to link to VLLM, may I ask if your tool call is normal? The tool call here is not normal.

用VLLM 的话 ,工具调用和模型有关系,需要找到一些比较好的支持工具调用的模型。还有就是,如果是使用openai 兼容模式的,需要看一下你的提示词和注册的工具,是否符合openai的标准,而不是 VLLM的。另外,现在建议还是使用MCP的方式进行工具的调用。以上只是我们的经验,您可以参考,我们并不是VLLM 的官方。如果需要进一步的咨询问题,可以去VLLM那边再问问。

Lincoln-cn avatar Sep 19 '25 07:09 Lincoln-cn

@ops-jaeha Have you done anything with this yet? I know the Spring (AI) team is super busy. If you are still able, and interested in a vllm starter, would you be interested in getting started in the https://github.com/spring-ai-community org?

I've recently made the move from Ollama over to VLLM. I don't know what specific "tighter" integrations you are interested in.

I'm interested in helping, if you are comfortable being unsupported for the time being.

dashaun avatar Apr 27 '26 18:04 dashaun