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

Misrepresentation of RateLimitError as 'Unknown OpenAI Error' #117

Open
h-b opened this issue Jul 2, 2023 · 2 comments
Open

Misrepresentation of RateLimitError as 'Unknown OpenAI Error' #117

h-b opened this issue Jul 2, 2023 · 2 comments

Comments

@h-b
Copy link

h-b commented Jul 2, 2023

I'm currently using Logseq 0.9.9 under Fedora and the GPT-3 OpenAI plugin v1.13.1. Even after generating a new API key, I'm still getting the 'Unknown OpenAI Error', similar as described in an older issue #55 (comment) - in my case, even /dalle causes the same error and there are three different error messages, depending on what specific function of the plugin I use.

image
image
image

I've tried to follow the debug instructions on https://github.com/briansunter/logseq-plugin-gpt3-openai#debugging, but I'm having trouble finding the 'View -> Toggle Developer Tools' menu, even though I've enabled developer mode in Logseq's advanced settings.

I've been encountering this issue ever since I first installed the plugin, rendering it unusable for me. Despite several updates to both Logseq and the plugin itself since the initial installation, the problem persists.

I use the default settings:

image
image

@h-b h-b changed the title "Unknown API Error" "OpenAI Plugin Error" Jul 2, 2023
@h-b h-b changed the title "OpenAI Plugin Error" "OpenAI Plugin Error" and "Unknown Open AI Error" Jul 2, 2023
@h-b
Copy link
Author

h-b commented Jul 3, 2023

I've managed to open the developer tools. It turns out, to open the view shown at https://github.com/briansunter/logseq-plugin-gpt3-openai#debugging, one needs to use the key combination Ctrl+Shift+I, as Logseq is an Electron app. Here are the error messages that appear in the Console when I use this plugin:

image

@h-b
Copy link
Author

h-b commented Jul 3, 2023

I've managed to diagnose the problem by running a quick test using the OpenAI quickstart Python repository (https://github.com/openai/openai-quickstart-python.git). The issue appears to be an openai.error.RateLimitError. It would have been helpful if the plugin's error message had indicated this directly. To reflect these findings, I've updated the title of this issue accordingly.

@h-b h-b changed the title "OpenAI Plugin Error" and "Unknown Open AI Error" Misrepresentation of RateLimitError as 'Unknown OpenAI Error' Jul 3, 2023
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