MiniMax models' tool calls are stripped instead of executed

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
領域
api, backend

調査の方向性

The report names stripMinimaxToolCallXml() in dist/image-BvuShkXY.js as the entry point. Read that function and trace how the anthropic-messages response is handled for the minimax-portal provider. Implement parsing and execution for the shown minimax:tool_call format; done means the example invoke is executed as a tool call instead of being stripped.

索引モデルが issue の本文から書いたものです。

説明

MiniMax models' tool calls are stripped instead of executed
Image

MiniMax 在 anthropic-messages API 中返回工具调用时,使用 XML 文本格式而非标准的 tool_use 结构化块:

问题描述

MiniMax 在 anthropic-messages API 中返回工具调用时,使用 XML 文本格式而非标准的 tool_use 结构化块:

MiniMax 实际返回:

{
  "content": [
    {
      "type": "text",
      "text": "<minimax:tool_call>\n  <invoke name=\"exec\">\n    <parameter name=\"command\">ls</parameter>\n  </invoke>\n</minimax:tool_call>"
    }
  ]
}

OpenClaw 期望:

{
  "content": [
    {
      "type": "tool_use",
      "id": "toolu_xxx",
      "name": "exec",
      "input": {
        "command": "ls"
      }
    }
  ]
}
<minimax:tool_call>
  <invoke name="exec">
    <parameter name="command">...</parameter>
  </invoke>
</minimax:tool_call>

Currently, stripMinimaxToolCallXml() in dist/image-BvuShkXY.js removes these as "malformed" content instead of executing them.

Expected

Parse and execute minimax:tool_call blocks as valid tool invocations.

Config

- Provider: minimax-portal
- API: anthropic-messages
- Model: MiniMax-M2.5 / MiniMax-M2.5-highspeed
主要言語
言語のデータがありません
スター
588
フォーク
83
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MiniMax-AI/MiniMax-M2.5 のほかの issue

MiniMax-AI/MiniMax-M2.5 の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。