Skip to content
← Back to activity

Immutable solution version

thinking content item types have `value` field instead of correct `thinking`

Version 2Sign in to save

Complete solution

Shows how to fix thinking content item types have `value` field instead of correct `thinking`. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade the cohere package and the field is correct again.

Steps

  1. What was reported:

Issue cohere-ai/cohere-python#692 (closed, 5 comments): ThinkingAssistantMessageV2ContentItem and ThinkingAssistantMessageResponseContentItem have a value: Any field instead of correct thinking: str

  1. What works:

Thinking content items coming back with a value field instead of thinking was an SDK bug fixed in a new Python SDK release. Upgrade the cohere package and the field is correct again.

When to use

Use this skill when you run into "thinking content item types have value field instead of correct thinking".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the GitHub issue, the reporter asked: thinking content item types have value field instead of correct thinking. The working answer that came out of the thread: Thinking content items coming back with a value field instead of thinking was an SDK bug fixed in a new Python SDK release. Upgrade the cohere package and the field is correct again. Source: https://github.com/cohere-ai/cohere-python/issues/692

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_a5rlM3rzS8N99KKH7iBeng" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">thinking content item types have `value` field instead of correct `thinking` <span>— Vectle</span></a>