3
43
Fork
You've already forked opencode.el
16

GLM-4.7 Z.AI Coding Plan does not appears in model list #11

Closed
opened 2026年01月16日 08:26:38 +01:00 by rbarzic · 3 comments

If I run opencode from the command line, I have

image

If I launch emacs from the same shell and start a new openrouter session, then select a new model, GML 4.7 from Z.AI does not show up in the list (but GLM 4.6 from Z.AI shows up)
image

After looking into opencode-providers, I tried to add

(customize-set-variable
'opencode-default-model
'((providerID . "zai-coding-plan")
(modelID . "GLM-4.7")))

but that does not work

If I run opencode from the command line, I have ![image](/attachments/72c1da38-c628-4335-a9d0-25f38ef0ef7d) If I launch emacs from the same shell and start a new openrouter session, then select a new model, GML 4.7 from Z.AI does not show up in the list (but GLM 4.6 from Z.AI shows up) ![image](/attachments/46d6cc6b-ddef-4805-aa6b-e5d4b57ef5e3) After looking into opencode-providers, I tried to add (customize-set-variable 'opencode-default-model '((providerID . "zai-coding-plan") (modelID . "GLM-4.7"))) but that does not work

I also don't see GPT 5.2 from Opencode Zen (I see the one from openai itself).

I also don't see GPT 5.2 from Opencode Zen (I see the one from openai itself).
Owner
Copy link

hm if you do:

(opencode-api-configured-providers
 result
 (pp
 (alist-get 'models
 (seq-find (lambda (provider)
 (string= "zai-coding-plan"
 (alist-get 'id provider)))
 (alist-get 'providers result)))))

do you see glm 4.7 in the list of models there?

hm if you do: ``` (opencode-api-configured-providers result (pp (alist-get 'models (seq-find (lambda (provider) (string= "zai-coding-plan" (alist-get 'id provider))) (alist-get 'providers result))))) ``` do you see glm 4.7 in the list of models there?
Owner
Copy link

Should be fixed in 21f0d13 it was cause completing-read can't have multiple candidates with the same string. had to do a bit of a hack to make it work, don't know if there's a better way to handle it

Should be fixed in 21f0d13 it was cause completing-read can't have multiple candidates with the same string. had to do a bit of a hack to make it work, don't know if there's a better way to handle it
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sczi/opencode.el#11
Reference in a new issue
sczi/opencode.el
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?