MiniMax models' tool calls are stripped instead of executed

Đang mở
#10 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
588
Fork
83
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MiniMax-AI/MiniMax-M2.5

Tất cả issue của MiniMax-AI/MiniMax-M2.5

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.