Skip to content

[Bug]: Select Model GLM-4.7 get "提示模型不存在,请检查模型代码" #7475

@jytx

Description

@jytx

Bug Description

When I use glm-4.7 or glm-5.1, an error occurs: "提示模型不存在,请检查模型代码". Strangely, glm-5 works normally when I select it, which means the API key is fine.

Steps to Reproduce

  1. run command: hermes model
  2. select provider :Z.AI / GLM (Zhipu AI direct API)
  3. enter Base URL: https://open.bigmodel.cn/api/anthropic
  4. select model: glm-4.7
  5. input command hermes
  6. then get response : {'error': {'code': '1211', 'message': '模型不存在,请检查模型代码。'}
    Full info:
    ⚠️ API call failed (attempt 1/3): BadRequestError [HTTP 400]
    🔌 Provider: zai Model: glm-4.7
    🌐 Endpoint: https://open.bigmodel.cn/api/anthropic
    📝 Error: HTTP 400: 模型不存在,请检查模型代码。
    📋 Details: {'error': {'code': '1211', 'message': '模型不存在,请检查模型代码。'}, 'request_id': '20260411084842f31e68d233e444ad'}
    ⚠️ Non-retryable error (HTTP 400) — trying fallback...
    ❌ Non-retryable error (HTTP 400): HTTP 400: 模型不存在,请检查模型代码。
    ❌ Non-retryable client error (HTTP 400). Aborting.
    🔌 Provider: zai Model: glm-4.7
    🌐 Endpoint: https://open.bigmodel.cn/api/anthropic
    💡 This type of error won't be fixed by retrying.

Expected Behavior

When I select glm-4.7 or glm-5.1, it responds normally.

Actual Behavior

an error occurs: "提示模型不存在,请检查模型代码".

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

No response

Operating System

Ubuntu 22.04.3 LTS

Python Version

3.11.15

Hermes Version

v0.8.0

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions