spring-projects / spring-projects/spring-ai

Please confirm if it is a bug,Springai encountered an error while calling VLLM

Open
#3,775 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Bug description
Springai encountered an error while calling VLLM

org.springframework.ai.retry.NonTransientAiException: HTTP 400 - {"object":"error","message":"[{'type': 'missing', 'loc': ('body',), 'msg': 'Field required', 'input': None}]","type":"Bad Request","param":null,"code":400}

Environment
vllm version 0.9.2
spring-ai-starter-model-openai 1.0.0

spring.ai.openai.api-key=test
spring.ai.openai.base-url=http://xxx:8000
spring.ai.openai.chat.options.model=Qwen1.5-1.8B-Chat

Minimal Complete Reproducible example
@GetMapping("/ai/generate")
public Map<String,String> generate(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {
System.out.printf("Generating a message for %s\n", message);
return Map.of("generation", this.chatModel.call(message));
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal /ai/generate example and reproduce the call using Spring AI 1.0.0, vLLM 0.9.2, and the configured base URL and model. Compare the request with the reported HTTP 400 response, then determine whether this is a Spring AI compatibility bug, a vLLM API mismatch, or configuration; done means the cause and ownership are confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.