spring-ai 1.1.0-offical Ollama Qwen3 32B stream chat not return \n

Open
#4,870 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, ollama, spring
Domain
ai, backend

Research direction

Start by reproducing the issue with the provided Spring AI Ollama configuration and the qwen3:32b model, comparing the official release with 1.1.0-M3. Trace the streaming chat output and verify that Python code responses preserve the expected newlines and code fences.

Written by the indexing model from the issue text.

Description

status: waiting-for-triage

config:

spring.ai:
  model:
    chat: ollama
  ollama:
    base-url: http://xxx:11434
    chat:
      options:
        model: qwen3:32b
        temperature: 0

question: print python Code snippet helloworld

outstream : print("hello world")

Expected. ```\n\n print ("hello world") \n\n```

this question resolved in 1.1.0-M3 but in offical is reproduction

Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 10h
Merged PRs (30d)
5

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.

More from spring-projects/spring-ai

All issues in spring-projects/spring-ai

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.