Skip to content

gnerate.text doesn't work immediately after service restarts #52881

Description

@kikuchan

Description

gnerate.text fails immediately after service restarts.
Once the API is called or the other APIs are called, it succeeds.

Plugins

none

OpenCode version

opencode v0.0.0-v2-202610030153

Steps to reproduce

$ opencode service restart
$ opencode api post /api/experimental/generate --data '{
  "prompt": "Return only the word OK.",
  "model": {
    "providerID": "openai",
    "id": "gpt-5.6-luna"
  }

It says:

{"_tag":"InvalidRequestError","message":"Model unavailable: openai/gpt-5.6-luna"}
HTTP 400 Bad Request

but, running it again, then:

{"data":{"text":"OK"}}

Screenshot and/or share link

No response

Operating System

Linux

Terminal

xterm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions