zed icon indicating copy to clipboard operation
zed copied to clipboard

AssistantPanel does not work , even when logged in to GitHub, nothing happens

Open ElijahLynn opened this issue 5 months ago • 20 comments

The Conversation mode is not working right now. Nothing happens when I submit text.

image

This behavior is the same with choosing 3.5, 4 or 4 turbo. The UX is confusing as the behavior is the same wether or not I am logged in.

Another piece of feedback, the fact that I can choose the model suggests that this would be going straight to OpenAI, not Copilot, which I was excited for because I can ask broader questions to OpenAI than I can Copilot as the latter is limited to just code. I assume the feature is WIP, but wanted to pass on feedback for now.

ElijahLynn avatar Jan 26 '24 20:01 ElijahLynn

The Zed Assistant and Copilot are two separate features.

Using the assistant requires an OpenAI to be entered.

From your screenshot it looks like you might not have a valid OpenAI key (although we do need to improve this state so that it is clearer).

maxdeviant avatar Jan 26 '24 21:01 maxdeviant

Paid OpenAI API key is required for Assistant feature to work properly.

  1. add credits to OpenAI
  2. generate new API key
  3. use assistant: reset key command
  4. enter the new key
  5. possibly restart zed editor

herko avatar Jan 26 '24 21:01 herko

Thanks, I haven't yet seen a UI to enter the key.

When I press cmd + shift + p, and type "assistant" I only see these three options: image

OR

"reset key"

image

I installed with brew fwiw.

Zed 0.119.19
020eadc7a43f28d3f91c9e19fbe2e24382a22c3e

ElijahLynn avatar Jan 26 '24 23:01 ElijahLynn

The Zed Assistant and Copilot are two separate features.

Thanks for clarifying, I was thinking of the Assistant like the Copilot Chat in VSCode. I am happy to hear that Assistant can use ChatGPT APIs directly and not be limited to coding only like Copilot. I like Copilot in the code editor and native ChatGPT in the Assistant. Looking forward to trying it out once I figure out how to enter the OpenAI API keys (I have a paid account, plus credits).

ElijahLynn avatar Jan 26 '24 23:01 ElijahLynn

I see now the docs suggest that when I first open the Assistant that it will prompt for a key > https://docs.zed.dev/general/assistant-panel#setup. That never happened as far as user flow goes.

ElijahLynn avatar Jan 26 '24 23:01 ElijahLynn

In addition, another odd thing is that I can click on "You" and change it to "Assistant" or "System", not sure if that is intended, but thought I would mention it.

ElijahLynn avatar Jan 26 '24 23:01 ElijahLynn

I have the exact same issue, can't find anywhere to input my API key

mikkelsvartveit avatar Jan 27 '24 18:01 mikkelsvartveit

@ElijahLynn @mikkelsvartveit Refer this https://github.com/zed-industries/zed/issues/6685#issuecomment-1913032296 I got it working by following these steps.

vigneshksaithal avatar Jan 28 '24 06:01 vigneshksaithal

@ElijahLynn @mikkelsvartveit Refer this https://github.com/zed-industries/zed/issues/6685#issuecomment-1913032296 I got it working by following these steps.

Thanks, i just don't see that option, reset key.

ElijahLynn avatar Jan 28 '24 17:01 ElijahLynn

@ElijahLynn open chat assistant panel and then search you will get reset key option.

vigneshksaithal avatar Jan 28 '24 17:01 vigneshksaithal

@ElijahLynn @mikkelsvartveit Refer this #6685 (comment) I got it working by following these steps.

Thanks, i just don't see that option, reset key.

Yes, make sure you are focused on the assistant panel when you open the command palette.

JosephTLyons avatar Jan 28 '24 21:01 JosephTLyons

Even after inputting the api key and restarting Zed the conversation panel doesn't work. Inline assistant is working but not on chat.

Not sure how to proceed

omegabyte avatar Feb 05 '24 12:02 omegabyte

@omegabyte In chat did you press cmd + enter after typing?

vigneshksaithal avatar Feb 05 '24 12:02 vigneshksaithal

@omegabyte did you make sure to add credits to your OpenAI account? I updated the docs here to make that clearer: https://zed.dev/docs/assistant-panel

mrnugget avatar Feb 06 '24 09:02 mrnugget

a subscription to openai.com doesn't work ? you need to add extra credits ?

enzime4u avatar Feb 14 '24 14:02 enzime4u

I have a GithubCopilot subscription and also an OpenAI (ChatGPT Plus) subscription ? Is there something else needed ?

enzime4u avatar Feb 14 '24 14:02 enzime4u

a subscription to openai.com doesn't work ? you need to add extra credits ?

Depends. ChatGPT is OpenAI's tool on top of their APIs, essentially. If you want to use the API itself (which is what Zed does) then you need extra credit to use the API.

mrnugget avatar Feb 15 '24 08:02 mrnugget

eJust got the update to try this again and I see the UI improvement to communicate this now: image

Feedback:

  • Make this a clickable link (https://platform.openai.com/api-keys)
  • After I entered the key, it worked but took me to a blank screen, I finally figured out to click the + (plus) sign to start a chat, some feedback here would be good
  • Add a link to the "credits" here https://platform.openai.com/account/billing/overview (took me a bit to find it again in the OpenAI UI, Settings > Billing)

edit: And it works!!!

image

So, we can "technically" close my issue now, me thinks.

ElijahLynn avatar Feb 22 '24 18:02 ElijahLynn

Mine is not working as well I added the open ai key, but to no avail

glenmiracle18 avatar Mar 01 '24 13:03 glenmiracle18

Did you add credits to your OpenAI account?

mrnugget avatar Mar 01 '24 16:03 mrnugget

This feels like a troubleshooting discussion as the initial bug has been fixed. I'm going to close this issue, but please let me know if I should reopen it or create an Assistant Panel enhancement ticket.

Moshyfawn avatar Mar 02 '24 01:03 Moshyfawn