briansunter / logseq-plugin-gpt3-openai

A plugin for GPT-3 AI assisted note taking in Logseq
https://twitter.com/bsunter
MIT License
709 stars 69 forks source link

Plugin Error #1

Closed ajk68 closed 2 years ago

ajk68 commented 2 years ago

Thanks for the GPT3 plugin! Unfortunately, i'm consistently getting OpenAi Plugin Error with each /gpt3 request.

Screenshot 2022-06-06 at 10 17 52

I created a new api key specifically for this plugin and OpenAI shows it has been used, so looks like an authenticated request was sent by the plugin and received by openai.

The console doesn't show much else apart from a 400 error.

Screenshot 2022-06-06 at 10 17 33

Could you please help me find a solution?

ajk68 commented 2 years ago

Just managed to get it working by running the local dev server. The moment i stop the vite server, i get the plugin error back. I assumed the packaged plugin would run standalone, and vite server was only needed for plugin developers.

briansunter commented 2 years ago

Are you installing this from the marketplace?

@ajk68 if possible would you mind checking the "network" tab while running the command and seeing what the error response from the /completions endpoint is? (dont share the key)

ajk68 commented 2 years ago

After reinstalling the plugin, it now works completely fine! Don't know what was causing the problem, but obviously it works brilliantly now... Wish i had this while i was still in university :-)

Screenshot 2022-06-07 at 14 57 54

Thanks for your work on this plugin!

BTW: Are you planning to add a slashCommand or contextMenuItem for tl;dr? Thought i saw this in one of the screenshots. Might be interesting to come up with a few prompts that generally work well for summarizing, or asking questions about the text or coming up with related concepts. Would be interested in learning best practises for using GPT3 to assist thinking.

briansunter commented 2 years ago

Awesome @ajk68 glad it's working. Feel free to open another issue if you notice anything off.

I really appreciate the feedback and suggestions. I added some items to the product roadmap.

8 is the top feature I'm working on

12

9

Closing this for now since it seems to be working for you, but feel free to open another issue if you encounter a bug or have an idea.