[GH-ISSUE #12087] Ollama Turbo Deepseek non-stream with options results in upstream error 502 #8030

Closed
opened 2026-04-12 20:16:18 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @MarkWard0110 on GitHub (Aug 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12087

Originally assigned to: @jmorganca on GitHub.

What is the issue?

Ollama Turbo, when using deepseek-v3.1:671b non-stream chat request with options set, will result in a upstream error 502 response.

Was able to replicate using ollama-python gpt-oss-tools.py example with the model set to deepseek-v3.1:671b

snippit

model = 'deepseek-v3.1:671b'

while True:
  response: ChatResponse = client.chat(model=model, messages=messages, tools=[get_weather, get_weather_conditions],options={
                "temperature": 0,
                "top_p": 0,
                "top_k": 1,
                "num_ctx": 64000,
                "num_predict": 8196
            })

When run it will error with an upstream error 502 response.

Relevant log output


OS

Windows 11

GPU

Ollama Turbo

CPU

Ollama Turbo

Ollama version

Ollama Turbo

Originally created by @MarkWard0110 on GitHub (Aug 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12087 Originally assigned to: @jmorganca on GitHub. ### What is the issue? Ollama Turbo, when using `deepseek-v3.1:671b` non-stream chat request with `options` set, will result in a `upstream error 502` response. Was able to replicate using `ollama-python` `gpt-oss-tools.py` example with the model set to `deepseek-v3.1:671b` snippit ``` model = 'deepseek-v3.1:671b' while True: response: ChatResponse = client.chat(model=model, messages=messages, tools=[get_weather, get_weather_conditions],options={ "temperature": 0, "top_p": 0, "top_k": 1, "num_ctx": 64000, "num_predict": 8196 }) ``` When run it will error with an `upstream error 502` response. ### Relevant log output ```shell ``` ### OS Windows 11 ### GPU Ollama Turbo ### CPU Ollama Turbo ### Ollama version Ollama Turbo
GiteaMirror added the bug label 2026-04-12 20:16:18 -05:00
Author
Owner

@jmorganca commented on GitHub (Aug 26, 2025):

This should be fixed now. Thanks for reporting!

<!-- gh-comment-id:3224984203 --> @jmorganca commented on GitHub (Aug 26, 2025): This should be fixed now. Thanks for reporting!
Author
Owner

@MarkWard0110 commented on GitHub (Aug 28, 2025):

@jmorganca I think it is working! Thank you!

<!-- gh-comment-id:3233758383 --> @MarkWard0110 commented on GitHub (Aug 28, 2025): @jmorganca I think it is working! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8030