mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
Summary: - The branch adds Chat Completions token-cap fields to the Gateway request type, forwards them as agent stream parameters, and documents/tests the behavior. - Reproducibility: yes. Source inspection gives a high-confidence current-main path: send `max_completion_toke ... tokens` to `/v1/chat/completions` and observe that the current handler never sets `streamParams.maxTokens`. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(gateway): wire max_completion_tokens/max_tokens through openai-http Validation: - ClawSweeper review passed for heada9c39f7d4a. - Required merge gates passed before the squash merge. Prepared head SHA:a9c39f7d4aReview: https://github.com/openclaw/openclaw/pull/81013#issuecomment-4430303959 Co-authored-by: Bingsen <dingheng.huang@urbanic.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>