spring-projects / spring-projects/spring-ai

Add stream_options Record to ChatCompletionRequest in Spring AI DeepSeek Provider

Open
#3,394 2 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

the current Spring AI DeepSeek provider (org.springframework.ai.deepseek.api.DeepSeekApi.ChatCompletionRequest) does not include a stream_options field, limiting the ability to configure streaming behavior programmatically. This is particularly critical for chatbot applications where tracking token usage is essential for cost management, performance monitoring, and user transparency.

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 org.springframework.ai.deepseek.api.DeepSeekApi.ChatCompletionRequest and inspect how its request fields are represented and serialized. Confirm the DeepSeek streaming request format for stream_options, then verify that callers can configure it and that token usage can be tracked as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
ai, api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.