openai-go icon indicating copy to clipboard operation
openai-go copied to clipboard

How to get the thinking content?

Open MaoJianwei opened this issue 2 weeks ago • 2 comments

I followed this example: https://github.com/openai/openai-go/blob/main/examples/chat-completion-accumulating/main.go

I want to get the thinking content, which is output by LLM in the <think>...</think>

How to get the thinking content?

MaoJianwei avatar Nov 24 '25 08:11 MaoJianwei

As far as I know, that's not possible. See: reasoning.encrypted_content.

https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include

The providers would thus be opening up too much to competition.

wbdb avatar Nov 26 '25 04:11 wbdb

As far as I know, that's not possible. See: reasoning.encrypted_content.

https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include

The providers would thus be opening up too much to competition.

If we deploy LLM by vllm, it will return the reasoning content and the formal content. The content between the <think>...</think> is not encrypted. @wbdb

MaoJianwei avatar Nov 26 '25 06:11 MaoJianwei