Commit Graph

4 Commits

Author SHA1 Message Date
spiceoogway
ccac2aeec2 Fix issue #4718: Enforce 40-char limit for OpenAI tool call IDs
OpenAI's API requires tool_call IDs to be <= 40 characters, but Clawdbot
was not enforcing this limit for OpenAI providers after commit 870bfa94e.

Changes:
- Re-enable tool call ID sanitization for OpenAI in transcript-policy.ts
- The sanitization preserves tool_use/tool_result pairing via stable mapping
- Add test case for 439-char ID (similar to reported 438-char issue)
- Update test expectations to reflect OpenAI now gets sanitized IDs

Root cause: Commit 870bfa94e disabled sanitization to "preserve Pi pairing",
but the sanitization logic already preserves pairing correctly via the
resolve() function in tool-call-id.ts.

Fixes openclaw/openclaw#4718
2026-01-30 10:56:36 -05:00
hlbbbbbbb
2496056886 fix(minimax): use correct API endpoint and format
MiniMax has updated their API. The previous configuration used an
incorrect endpoint (api.minimax.io/anthropic) with anthropic-messages
format, which no longer works.

Changes:
- Update MINIMAX_API_BASE_URL to https://api.minimax.chat/v1
- Change API format from anthropic-messages to openai-completions
- Remove minimax from isAnthropicApi check in transcript-policy

This fixes the issue where MiniMax API calls return no results.
2026-01-27 19:48:38 -06:00
Peter Steinberger
2424404fb4 docs: add transcript hygiene reference 2026-01-23 01:34:21 +00:00
Peter Steinberger
db0235a26a fix: gate transcript sanitization by provider 2026-01-23 00:42:45 +00:00