Skip to content

cannot set API key with M-x set-variable: error Value [...] does not match type choice #379

@zacchiro

Description

@zacchiro

M-x set-variable chatgpt-shell-[something]-key is failing for me with the error in title. I've tried both openai and anthropic, obtaining the same error.

EDIT: I'm using chatgpt-shell version 20250722.81, from melpa.

The work around is to set variables with something like setq, M-x customize-set-variable, or edit init.el directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions