Skip to content

[Bug]: Some OpenCode models (like GLM 5.2) fail with HTTP 404 — Not Found | opencode #57288

Description

@sylvesterroos

Bug Description

Some models like GLM 5.2 and Kimi K2.7 fail with the following message in the chat: API call failed after 3 retries: HTTP 404 — Not Found | opencode

This fails with any message, and at the start of the session

Steps to Reproduce

  1. Have an OpenCode Go subscription
  2. Switch to GLM 5.2 as the model
  3. Send any message

Expected Behavior

GLM 5.2, Kimi K2.7, and any other failing models should work

Actual Behavior

The error I get back is API call failed after 3 retries: HTTP 404 — Not Found | opencode

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

Report       https://paste.rs/Co8Ef
  agent.log    https://paste.rs/8hgJ8
  gui.log      https://paste.rs/Zjxk4
  desktop.log  https://paste.rs/ufFsT

Operating System

MacOS 26.5.1 (25F80)

Python Version

Python 3.9.6 (hermes version says 3.11.15)

Hermes Version

0.18.0

Additional Logs / Traceback (optional)

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

    P2Medium — degraded but workaround existsarea/configConfig system, migrations, profilesbugcomp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpointduplicateThis issue or pull request already existsprovider/openaiOpenAI / Codex Responses APIsweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions