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

The model gpt-4-1106-preview is not available. Zotero 6.0.30 ARIA 0.6.5. #70

Open
rsantamariao opened this issue Dec 17, 2023 · 5 comments

Comments

@rsantamariao
Copy link

Great add-on.
Error I got:
Using a valid OpenAI API key:

  1. If I use Open API Base URL: https://api.openai.com/v1 OR https://api.openai.com/v1/
    I got this error message:
{
  "status": 404,
  "headers": {},
  "error": {
    "message": "The model `gpt-4-1106-preview` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.",
    "type": "invalid_request_error",
    "param": null,
    "code": "model_not_found"
  },
  "code": "model_not_found",
  "param": null,
  "type": "invalid_request_error",
  "attemptNumber": 1,
  "retriesLeft": 6,
  "name": "Error",
  "message": "404 The model `gpt-4-1106-preview` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.",
  "stack": "@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:830:19\n_APIError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38798:9\nnode_modules/openai/error.mjs/NotFoundError<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38891:15\ngenerate@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38835:18\nmakeStatusError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39618:16\nmakeRequest@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39658:24\n"
}
  1. If I use Open API Base URL: https://api.openai.com/v1/chat/completions
    I got this error message:
{
  "status": 404,
  "headers": {},
  "error": {
    "message": "Invalid URL (POST /v1/chat/completions/chat/completions)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  },
  "code": null,
  "param": null,
  "type": "invalid_request_error",
  "attemptNumber": 1,
  "retriesLeft": 6,
  "name": "Error",
  "message": "404 Invalid URL (POST /v1/chat/completions/chat/completions)",
  "stack": "@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:830:19\n_APIError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38798:9\nnode_modules/openai/error.mjs/NotFoundError<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38891:15\ngenerate@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38835:18\nmakeStatusError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39618:16\nmakeRequest@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39658:24\n"
}

Any suggestion?
Zotero version: 6.0.30
ARIA release: 0.6.5
Best.

@lifan0127
Copy link
Owner

Hi @rsantamariao, your first configuration is correct. However, you may not have access to the specific model gpt-4-1106-preview.

To verify model access, please check out
#62 (comment)

@olivershetler
Copy link

I think there is a quick workaround for this. Would it be possible for the maintainer to simply replace the radio buttons with a text field for model versions? Anybody who has the knowledge to get their API key from OpenAI should be capable of also copy-pasting whichever model version they want from the API reference's list of available models. Some people, for instance, might want to use GPT 3.5 etc.

@lifan0127
Copy link
Owner

Hi @olivershetler Thanks for the feedback. You can change the model name directly via the preference editor. Go to Preferences > Advanced > Config Editor and then search for aria.OPENAI_MODEL. Double click to change the value and be sure to restart Zotero.

image

@mohalam
Copy link

mohalam commented Mar 26, 2024

@lifan0127 tried to change in the config editor, but the error is not going, and I cannot use the ARIA still.

@lifan0127
Copy link
Owner

Hi @mohalam have you restarted Zotero?

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

4 participants