Skip to content

fix: make mimo happy#12

Open
x5iu wants to merge 2 commits intomainfrom
feat/make-mimo-happy
Open

fix: make mimo happy#12
x5iu wants to merge 2 commits intomainfrom
feat/make-mimo-happy

Conversation

@x5iu
Copy link
Copy Markdown
Owner

@x5iu x5iu commented Dec 17, 2025

🫵😡

{
  "error": {
    "message": "Provider returned error",
    "code": 400,
    "metadata": {
      "raw": "{\"error\":{\"code\":\"400\",\"message\":\"Param Incorrect\",\"param\":\"`text` is not present\",\"type\":\"\"}}",
      "provider_name": "Xiaomi"
    }
  },
  "user_id": "user_***************************"
}

When simplifying single text part content to Text type, skip the
simplification if the part has CacheControl set. This preserves
the CacheControl information which would otherwise be lost.

Also updated the tool_result_message_conversion test to expect
Text type for messages without CacheControl, aligning with the
"make mimo happy" change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant