Merge commit ae2f203 (PR #3232) has a botched conflict resolution in rust/crates/api/src/providers/openai_compat.rs: a duplicated tail of the old send_message body (the {"error": ...} pre-check and final deserialization block, lines 286-328) was left behind after the function's closing brace. This unbalances the braces and the crate no longer compiles:
error: unexpected closing delimiter: `}`
--> crates/api/src/providers/openai_compat.rs:432:1
|
121 | impl OpenAiCompatClient {
| - this delimiter might not be properly closed...
...
328 | }
| - ...as it matches this but it has different indentation
...
432 | }
| ^ unexpected closing delimiter
error: could not compile `api` (lib) due to 1 previous error
Fix: delete the stray duplicated block at lines 286-328 (everything between the } that closes send_message at line 285 and the pub async fn stream_message definition at line 330).
Found while packaging claw-code for Nix in https://github.com/numtide/llm-agents.nix; we are carrying the deletion as a downstream patch until this is fixed.
Merge commit ae2f203 (PR #3232) has a botched conflict resolution in
rust/crates/api/src/providers/openai_compat.rs: a duplicated tail of the oldsend_messagebody (the{"error": ...}pre-check and final deserialization block, lines 286-328) was left behind after the function's closing brace. This unbalances the braces and the crate no longer compiles:Fix: delete the stray duplicated block at lines 286-328 (everything between the
}that closessend_messageat line 285 and thepub async fn stream_messagedefinition at line 330).Found while packaging claw-code for Nix in https://github.com/numtide/llm-agents.nix; we are carrying the deletion as a downstream patch until this is fixed.