[GH-ISSUE #7] DeepSeek error: (HTTP/2 400) deepseek-reasoner does not support the parameter temperature #5

Closed
opened 2026-10-26 21:10:01 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @Spike-Leung on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/7

When call the api with deepseek-reasoner, it return:

DeepSeek error: (HTTP/2 400) deepseek-reasoner does not support the parameter temperature

seems temperature not work for deepseek-reasoner?

Originally created by @Spike-Leung on GitHub (Jan 20, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/7 When call the api with deepseek-reasoner, it return: DeepSeek error: (HTTP/2 400) deepseek-reasoner does not support the parameter `temperature` seems `temperature` not work for deepseek-reasoner?
Author
Owner

@Sixzero commented on GitHub (Jan 20, 2025):

`temp: 0.1 ̇ works.

Idk why or if it is the same:

curl -X POST "https://api.deepseek.com/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <DeepSeek API Key>" \
  -d '{
    "model": "deepseek-reasoner",
    "messages": [
      {"role": "user", "content": "Explain Python in 3 sentences"}
    ],
    "temp": 0.1
  }'
<!-- gh-comment-id:2602976307 --> @Sixzero commented on GitHub (Jan 20, 2025): `temp: 0.1 ̇ works. Idk why or if it is the same: ``` curl -X POST "https://api.deepseek.com/v1/chat/completions" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <DeepSeek API Key>" \ -d '{ "model": "deepseek-reasoner", "messages": [ {"role": "user", "content": "Explain Python in 3 sentences"} ], "temp": 0.1 }' ```
Author
Owner

@Spike-Leung commented on GitHub (Jan 21, 2025):

Image

According to the docs, temperature should work:

The DeepSeek API uses an API format compatible with OpenAI.

OpenAI API param is also temperature.

<!-- gh-comment-id:2603458040 --> @Spike-Leung commented on GitHub (Jan 21, 2025): ![Image](https://github.com/user-attachments/assets/4fa11e98-9a02-403d-baef-b442be6c34ac) According to the [docs](https://api-docs.deepseek.com/quick_start/parameter_settings), `temperature` should work: > [The DeepSeek API uses an API format compatible with OpenAI.](https://api-docs.deepseek.com/#:~:text=The%20DeepSeek%20API%20uses%20an%20API%20format%20compatible%20with%20OpenAI.) OpenAI API param is also [temperature](https://platform.openai.com/docs/api-reference/audio/createTranscription#audio-createtranscription-temperature).
Author
Owner

@Spike-Leung commented on GitHub (Jan 21, 2025):

It's working now, and the issue is closed, thanks.

<!-- gh-comment-id:2603598971 --> @Spike-Leung commented on GitHub (Jan 21, 2025): It's working now, and the issue is closed, thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-R1#5
No description provided.