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:
Screenshot and/or share link
No response
Operating System
Linux
Terminal
xterm
Description
gnerate.textfails 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
It says:
but, running it again, then:
Screenshot and/or share link
No response
Operating System
Linux
Terminal
xterm