Skip to main content

without_gemini_thinking

Function without_gemini_thinking 

Source
pub fn without_gemini_thinking(body: &[u8]) -> Option<Vec<u8>>
Expand description

A Claude Messages (or count tokens) body with every Gemini-signed thinking block removed, and any message the removal empties; None when the body holds none. This is for a request that reaches an Anthropic upstream as it is, without conversion: Anthropic refuses a signature it did not issue, which is the case after the conversation moved over from a Gemini upstream.