Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gptel: Make gptel-model variable definition dynamic #606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pabl0
Copy link

@pabl0 pabl0 commented Feb 2, 2025

  • gptel.el (gptel-model): Ensure the docstring documentation and customization options are current (in sync with
    `gptel--openai-models') by dynamically generating them instead of hard-coding.

* gptel.el (gptel-model): Ensure the docstring documentation and
customization options are current (in sync with
`gptel--openai-models') by dynamically generating them
instead of hard-coding.
@karthink
Copy link
Owner

karthink commented Feb 4, 2025

Thanks! Now that I look at the code, this list is ChatGPT specific and alternatives like Claude are very popular now (as opposed to an year ago), so I'm thinking we don't even need to "hard-code" the options in the docstring. We can just say that gptel-model should be the name of a model as a symbol, and continue to provide the models for the OpenAI backend as available options since it's the default.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants