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

Problem connecting with ChatGPT #154

Open
avikla opened this issue Dec 10, 2024 · 7 comments
Open

Problem connecting with ChatGPT #154

avikla opened this issue Dec 10, 2024 · 7 comments

Comments

@avikla
Copy link

avikla commented Dec 10, 2024

I have a paid subscription of ChatGpt and paid for API use at open.ai.
I still get this error message on Aria on Zotero 7

image

@lbienstock
Copy link

I'm having the same issue and also have a paid subscription to ChatGPT. I'm using Aria on Zotero 7
Screenshot 2024-12-10 at 21 47 50

@WeissShahaf
Copy link

same here. zotero 7

@CoachKidd
Copy link

Same here.

GIVEN that I've configured ARIA with the API key created at OpenAI AND I have a paid ChatGPT Plus account
WHEN I use ARIA to search for Show me the papers related to #agility
THEN I get an error message (see screenshot)

2024-12-13_11-03-13

Here's the error stack.

<pre>{
  "status": 404,
  "headers": {
    "alt-svc": "h3=\":443\"; ma=86400",
    "cf-cache-status": "DYNAMIC",
    "cf-ray": "8f155ff53bca657c-LHR",
    "content-encoding": "br",
    "content-type": "application/json; charset=utf-8",
    "date": "Fri, 13 Dec 2024 10:47:13 GMT",
    "priority": "u=4,i=?0",
    "server": "cloudflare",
    "server-timing": "cfExtPri",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "vary": "Origin",
    "x-content-type-options": "nosniff",
    "x-firefox-http3": "h3",
    "x-request-id": "req_a07ca5b972e70496533dc545e3cda414"
  },
  "error": {
    "message": "The model `gpt-4` does not exist or you do not have access to it.",
    "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` does not exist or you do not have access to it.",
  "stack": "Ae@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:244:3146\nt@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:244:3211\nbu@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:244:4460\ngenerate@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:244:3725\nmakeStatusError@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:247:7509\nmakeRequest@jar:file:/<local-profile-dir>/extensions/[email protected]!/chrome/content/scripts/aria.js:247:8402\n"
}</pre>

@teramolamo
Copy link

I have the same issue as everyone else. I have Zotero version 7.0.11 and Aria build 0.7.5. I followed the Github instructions. I have a paid account with OpenAI AND made sure to add $15 to the bank in the API section as well. My account for sure has GPT 4o access. I created the API key and copied it into Aria. I didn't change anything from default in the OpenAI API Base Url box. It says "Apologies for the inconvenience. Something has gone wrong within Aria. Please check the error stack for detailed information about the issue." Error stack text below. (Also, I do not love that I cannot select text to copy within the Aria popup chat window. HATE that I cant select text.)

{
"status": 404,
"headers": {
"access-control-allow-origin": "*",
"alt-svc": "h3=":443"; ma=86400",
"cf-cache-status": "DYNAMIC",
"cf-ray": "902e1acbda5110d0-ORD",
"content-encoding": "br",
"content-type": "application/json",
"date": "Thu, 16 Jan 2025 12:28:19 GMT",
"openai-processing-ms": "6",
"openai-version": "2020-10-01",
"server": "cloudflare",
"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
"x-firefox-spdy": "h2",
"x-request-id": "req_de0da31d00682b02e2fe5f36ee5ca16f"
},
"error": {
"message": "Invalid URL (POST /v1/models/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/models/chat/completions)",
"stack": "Ae@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:244:3146\nt@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:244:3211\nbu@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:244:4460\ngenerate@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:244:3725\nmakeStatusError@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:247:7509\nmakeRequest@jar:file://extensions/[email protected]!/chrome/content/scripts/aria.js:247:8402\n"
}

Is there a fix?

@lifan0127
Copy link
Owner

Hi everyone, sorry for the frustration. I plan to release a new version soon. It has been completely rewritten such that this issue should no longer exist. Please stay tuned.

@teramolamo
Copy link

@lifan0127 I managed to get mine working. The problem for me was the API Base URL box. I had to try all sorts of different entries to try and get it to work. It eventually worked with "https://api.openai.com/v1/" in there. I'm not sure what the error message would have been if I hadn't also gone in and added credits to my account in addition to already having a paid subscription for ChatGPT. But for me, I have the $20/month plan for ChatGPT, I have add $15 credits to the bank, created my API, and added "https://api.openai.com/v1" and it is working smoothly now. The one question I asked required 2300 tokens and it is showing in my OpenAI account info for the question/response I submitted through Aria. So, it's working.

@lifan0127
Copy link
Owner

Thanks!

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

6 participants