spring-projects / spring-projects/spring-ai

OpenAI interface docking with siliconflow returns a bunch of null values

Open
#2,473 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-feedback
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

Image

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.