spring-projects / spring-projects/spring-ai
OpenAI interface docking with siliconflow returns a bunch of null values
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
The openai interface interfaces with siliconflow, using the stream model to return a bunch of null values, followed by a \n\n, before returning the correct content
Environment
JDK21+SpringBoot 3
Steps to reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Minimal Complete Reproducible example
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
No files, tests, or entry points are named. Start by reproducing the OpenAI interface with SiliconFlow's stream model under JDK 21 and Spring Boot 3, then inspect the streamed values before the correct content appears. Done means the stream no longer returns the unexpected null values and extra newlines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100