Skip to content

feat(api): support 'reasoning' api field#7959

Merged
mudler merged 1 commit intomasterfrom
feat/reasoning-api
Jan 10, 2026
Merged

feat(api): support 'reasoning' api field#7959
mudler merged 1 commit intomasterfrom
feat/reasoning-api

Conversation

@mudler
Copy link
Copy Markdown
Owner

@mudler mudler commented Jan 10, 2026

This PR adds support to support the 'reasoning' API field of the OpenAI spec.

LocalAI now will extract automatically thinking tags in both SSE and non-SSE mode. The changes are adapted as well to the Chat UI now that will use the reasoning field to extract the thinking process and display it in the chat.

This fixes #7944

This PR adds support to support the 'reasoning' API field of the OpenAI
spec.

LocalAI now will extract automatically thinking tags in both SSE and
non-SSE mode. The changes are adapted as well to the Chat UI now that
will use the reasoning field to extract the thinking process and display
it in the chat.

This fixes #7944

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 10, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 2b621fd
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/696291bc488bb40008578ac9
😎 Deploy Preview https://deploy-preview-7959--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler added the enhancement New feature or request label Jan 10, 2026
@mudler mudler merged commit c88074a into master Jan 10, 2026
33 checks passed
@mudler mudler deleted the feat/reasoning-api branch January 10, 2026 18:06
@vaaale
Copy link
Copy Markdown
Contributor

vaaale commented Jan 18, 2026

When will this PR be available in the "latest" docker images or release?
I tried localai/localai:latest-gpu-nvidia-cuda-13 without any success....

localai-bot pushed a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
This PR adds support to support the 'reasoning' API field of the OpenAI
spec.

LocalAI now will extract automatically thinking tags in both SSE and
non-SSE mode. The changes are adapted as well to the Chat UI now that
will use the reasoning field to extract the thinking process and display
it in the chat.

This fixes mudler#7944

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handling of models pulled from HF does not properly handle thinking

2 participants