spring-projects / spring-projects/spring-ai
Please confirm if it is a bug,Springai encountered an error while calling VLLM
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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