emacs-openai / openai

Elisp library for the OpenAI API
GNU General Public License v3.0
100 stars 17 forks source link

A way to select which model? #1

Closed chookity-pokk closed 1 year ago

chookity-pokk commented 1 year ago

I tried looking around in the code and think that running openai-retrieve-model let's you select which model to use? I'm not totally sure though. If that is correct I can open a PR with that info in the README.

jcs090218 commented 1 year ago

I think you are referring to openai-completion.el? See

https://github.com/emacs-openai/openai/blob/2310f983081205fcab0b167c8e89913d69c0d9e8/openai-completion.el#L31

You can set it by doing:

(setq openai-completon-model "MODEL-NAME")