# 让模型解释文档转换失败，怎样防止它猜错文件格式？

1. 给模型真实错误码和当前文件类型，请它只选预先列好的处理类别，比较实际回复。
2. 打开首次调用工具，输入回执中的模型 ID 与测试文本，复制命令到本地终端执行。复测时核对 max_tokens 与回执中的实际设置。
3. 核对下方本次结果与验收条件。完整输入、结果和执行范围可查看回执。
4. 本题实际输入为「Upload is a scanned PDF. API returned ocr_not_performed. Choose action OCR_REQUIRED or CHANGE_DOCX_EXTENSION. Return only the action.」。预期可见答案为「OCR_REQUIRED」。按去掉首尾空白后的字符串精确比对。

```json
[
  {
    "model": "glm-5.3-flash",
    "max_tokens": 64,
    "messages": [
      {
        "role": "user",
        "content": "Upload is a scanned PDF. API returned ocr_not_performed. Choose action OCR_REQUIRED or CHANGE_DOCX_EXTENSION. Return only the action."
      }
    ],
    "stream": false
  },
  {
    "model": "deepseek-v4.1-flash",
    "max_tokens": 256,
    "messages": [
      {
        "role": "user",
        "content": "Upload is a scanned PDF. API returned ocr_not_performed. Choose action OCR_REQUIRED or CHANGE_DOCX_EXTENSION. Return only the action."
      }
    ],
    "stream": false
  }
]
```
