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

Default model deprecated #19

Open
raghavkarol opened this issue Feb 15, 2024 · 0 comments
Open

Default model deprecated #19

raghavkarol opened this issue Feb 15, 2024 · 0 comments

Comments

@raghavkarol
Copy link

raghavkarol commented Feb 15, 2024

The default model text-davinci-003 has been deprecated. This causes codegpt command to fail. Running openapi with debug-mode shows the error message:

[ENCODED]: {"model":"text-davinci-003","prompt":"What is the following?\n\n(cl-defun openai-completion ( prompt callback\n\n","max_tokens":2000,"temperature":1.0}
[error] request--callback: peculiar error: 404
[ERROR]: #s(request-response 404 nil ((error (message . The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations) (type . invalid_request_error) (param) (code . model_not_found))) (error http 404) error https://api.openai.com/v1/completions nil (:error (closure (t) (&rest --cl-rest--) 

(defcustom codegpt-model "text-davinci-003"

Updating the model resolved the issue

(use-package codegpt
  :ensure t
  :config
  (setq codegpt-model "gpt-3.5-turbo-instruct"))
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

No branches or pull requests

1 participant