ai-research-assistant
ai-research-assistant copied to clipboard
"Something has gone wrong within Aria."
I receive the following error every time I try to ask ARIA a question. I have copied an API key from OpenAI, with which I have an account. What am I missing?
Aria v0.5.4 Zotero v6.0.30 in Win11
{ "message": "Request failed with status code 404 and body {\n \"error\": {\n \"message\": \"The model `gpt-4-0613` 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.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"model_not_found\"\n }\n}\n", "name": "Error", "fileName": "resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/keega/AppData/Roaming/Zotero/Zotero/Profiles/6x0fdmrn.default/extensions/[email protected]!/bootstrap.js -> jar:file:///C:/Users/keega/AppData/Roaming/Zotero/Zotero/Profiles/6x0fdmrn.default/extensions/[email protected]!/chrome/content/scripts/index.js", "lineNumber": 47394, "columnNumber": 18, "stack": "createError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/[email protected]!/bootstrap.js -> jar:file:/ /extensions/[email protected]!/chrome/content/scripts/index.js:47394:18\nsettle@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:/ /extensions/[email protected]!/bootstrap.js -> jar:file:/ /extensions/[email protected]!/chrome/content/scripts/index.js:47160:12\nfetchAdapter/ jar:file:/ /extensions/[email protected]!/bootstrap.js -> jar:file:/ /extensions/[email protected]!/chrome/content/scripts/index.js:47271:121\nfetchAdapter@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:/ /extensions/[email protected]!/bootstrap.js -> jar:file:/ /extensions/[email protected]!/chrome/content/scripts/index.js:47267:10\n", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "transformRequest": [], "transformResponse": [], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/json", "User-Agent": "OpenAI/NodeJS/3.3.0", "Authorization": "Bearer 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" }, "method": "post", "data": "{\"model\":\"gpt-4-0613\",\"temperature\":0,\"top_p\":1,\"frequency_penalty\":0,\"presence_penalty\":0,\"n\":1,\"stream\":false,\"functions\":[{\"name\":\"routing\",\"description\":\"Define an action to route a user's request. Output the action name in the \\\"action\\\" field and the payload for the action in the \\\"payload\\\" field.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"action\":{\"type\":\"string\",\"description\":\"The action to take, either routing to a specific route or asking for clarification.\",\"enum\":[\"routing\",\"clarification\"]},\"payload\":{\"oneOf\":[{\"type\":\"object\",\"properties\":{\"route\":{\"type\":\"string\",\"description\":\"The name of the executor to handle the request. Must be one of the following:\\n- search: For searching user's Zotero library related to a specific topic. Use this route when a user expects to see a list of search results.\\n- qa: For Q&A and other related requests based on user's Zotero library. Use this route when a user expects to see a single answer or summary.\",\"enum\":[\"search\",\"qa\"]},\"input\":{\"type\":\"string\",\"description\":\"A potentially modified version of the original user message for the route.\"},\"states\":{\"type\":\"object\",\"description\":\"A subset of the application states relevant to the user message.\",\"properties\":{\"creators\":{\"type\":\"array\",\"description\":\"Creators (authors, editors) of the items in the Zotero library, useful for refining search scope.\",\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"description\":\"Tags of the items in the Zotero library, useful for refining search scope.\",\"items\":{\"type\":\"string\"}},\"items\":{\"type\":\"array\",\"description\":\"Zotero Item IDs, useful as sources for Q&A.\",\"items\":{\"type\":\"number\"}},\"collections\":{\"type\":\"array\",\"description\":\"Zotero Collection IDs, useful for refining search scope.\",\"items\":{\"type\":\"number\"}}}}},\"required\":[\"route\",\"input\"]},{\"type\":\"object\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"The message to ask for user clarification or missing information.\"}},\"required\":[\"message\"]}]}},\"required\":[\"action\",\"payload\"]}}],\"function_call\":{\"name\":\"routing\"},\"messages\":[{\"role\":\"system\",\"content\":\"You are an AI assistant for Zotero, a reference management software.\\nYour job is to analyze a user's request, in the context of the application states, and choose the appropriate follow-up actions.\\n\\nRequirements:\\n- You should interpret the user request in the context of the application states, which include a set of authors, tags, items and collections selected by the user.\\n- When you cannot confidently determine the user's intention, the action should be \\\"clarification\\\" and the payload should contain a message to politely express your doubt. The goal is have the user provide more information through conversation.\\n- After you have gathered enough information to understood the user's intention, the action should be \\\"routing\\\" and the payload should contain the name of the route to handle the request, the input for the route, and optionally, the relevant application states. The name of the route must be one of the values provided to you. The input could be a potentially modified version of the original user message.\"},{\"role\":\"user\",\"content\":\"Application States:\\n\\n\\nUser Input: Hello?\"}]}", "url": "https://api.openai.com/v1/chat/completions" }, "status": 404 }