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

[Help Wanted]: I have a Copilot subscription but can't get it running in Xcode #394

Open
2 tasks done
carlca opened this issue Nov 12, 2023 · 29 comments
Open
2 tasks done
Labels
help wanted Extra attention is needed

Comments

@carlca
Copy link

carlca commented Nov 12, 2023

Before Reporting

  • I have checked FAQ, and there is no solution to my issue
  • I have searched the existing issues, and there is no existing issue for my issue

Describe your issue

  • Xcode 15.1 beta
  • macOS 13.6

I have an active Github Copilot subscription and have been using it in VS Code and Cursor ( a VS Code clone). I've installed the Copilot for Xcode extension and the extra option appears at the foot of the Editor menu in Xcode. So far, so good!

When I try to use the extension I get this error...

SCR-20231112-olje

I've been to the openai website and have generated a new API key, but I don't know how to add it to Copilot for Xcode!

Please can you or anyone reading this explain what I need to do? Thx!
I promise I've checked the issues (both open and closed) and the FAQs 😉

@carlca carlca added the help wanted Extra attention is needed label Nov 12, 2023
@carlca
Copy link
Author

carlca commented Nov 12, 2023

I looked at the instructions and saw that I hadn't completed the Github Copilot stage, even though I'm using Github Copilot in another editor (Cursor), so I completed these steps...

SCR-20231112-rvam

And tried again. It is still after my API key, which as I say, I have ready and waiting - I just need to know where to stick it 😉

@intitni
Copy link
Owner

intitni commented Nov 13, 2023

The chat and prompt to code feature are not provided by GitHub Copilot, please read the next section in the README.md to setup a chat model.

@carlca
Copy link
Author

carlca commented Nov 13, 2023

Hello! Thanks for the reply. I've read though that section and added my new Chat GPT API Key...

image

Unfortunately, I am still getting the same error when I try hit the Test button!

image

What am I doing wrong? This is so frustrating!

@intitni
Copy link
Owner

intitni commented Nov 13, 2023

It's not the same error. You just don't have access to GPT-4 yet. Please check the link in the error message https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4 for details

@carlca
Copy link
Author

carlca commented Nov 13, 2023

This is from https://chat.openai.com...

image

Now do you understand why I am finding the error messages and comments like "You just don't have access to GPT-4 yet" very frustrating!

Could you also tell me which of the Editor -> Copilot menu options I should use to access the Github Copilot facilities?

@intitni
Copy link
Owner

intitni commented Nov 13, 2023

ChatGPT Plus and the API thing are using different payment systems. From what I can see from the link, you have to use at least 1 USD before you can access GPT-4.

GitHub Copilot fetches suggestions automatically when you type, you can use the accept suggestion command to accept it. You can find the meanings of the other commands in the README.md in the Feature section.

@carlca
Copy link
Author

carlca commented Nov 13, 2023

I've just added $10 to my Chat GPT API account. And after having to delete my existing API key and adding a new one, I'm now getting somewhere in terms of the Test button with Copilot for Xcode...

SCR-20231113-ktob

However, I am still getting the error in the Chat facility...

SCR-20231113-kvfl

Any ideas?

@intitni
Copy link
Owner

intitni commented Nov 13, 2023

Change the chat model in Feature - Chat to the new one.

@carlca
Copy link
Author

carlca commented Nov 13, 2023

Thank you! I've got the Chat working now 😃

For the record, I've got a thirty year development career behind, so I don't think I am a stupid man, but I have to say that that process of getting it set up was much more difficult than it needed to be, with too many stages of the process relying on the user knowing things about Chat GPT in advance, that the docs don't tell you!

To be fair, I would say that openai are guilty of the same thing. It was only half an hour ago that I discovered that the Chat GPT API service was a separate thing from the Chat GPT Plus!

This afternoon, I will try to get the Github Copilot suggestions working. You may hear from me again 😉

@emrdgrmnci
Copy link

emrdgrmnci commented Nov 25, 2023

I have same headache! To be able to use that Copilot for Xcode's chat and suggestions and get rid of that 'You didn't provide an API key ...' thing I have to buy separate Chat GPT API service in addition to my current Chat GPT 4 subscription?

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci Yes

@emrdgrmnci
Copy link

Thank you! So, I couldn't find the place for buying that additional ChatGPT API subscription. Can you guide me?

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci you can create a key in the the user settings page on openai.com

https://platform.openai.com/api-keys

@emrdgrmnci
Copy link

@intitni I have already created and pasted API key into the Copilot for Xcode but still getting error "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys."

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci Please make sure that

  1. You have selected the key in the chat model settings.
  2. You have selected the correct model in the chat feature settings.

If the issue persists, please post the screenshots of the two pages here.

@emrdgrmnci
Copy link

I'm a Chat GPT Plus subscriber and I'm able to use Chat GPT-4, but I tried with all Model Names (gpt-4, gpt-3,5 and so on..) but still getting that You didn't provide an API key... error

Screenshot 2023-11-25 at 16 37 49 Screenshot 2023-11-25 at 16 40 04 Screenshot 2023-11-25 at 16 40 31

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci It looks like the error message is about insufficient quota, from the second screenshot. Chat GPT Plus and the API key are two different products using different billing system, please check that your billing information is correct on openai.com.

@emrdgrmnci
Copy link

Yes, I understood they are different and I have only Chat GPT Plus subscription for now. And, I'm still not able to find their another subscription and paying page for the API key. But, it's ridiculous to already setting API key through Chat GPT Plus subscription as well.

In that case, what I understand is, I need to buy Chat GPT API subscription for getting it's API key which is other than Chat GPT Plus API key.

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci
Copy link

I bought 6$ Chat GPT API subscription but still there's no luck! Also, I updated to Copilot for Xcode to version 0.27.1 and when I selected gpt-4-vision-preview as a Model Name, app is crashed at all.

Screenshot 2023-11-25 at 17 32 26 Screenshot 2023-11-25 at 17 32 36 Screenshot 2023-11-25 at 17 33 51

@emrdgrmnci
Copy link

ok. finally, it worked! I was also added Codeium, and now I removed Codeium at all and Copilot started to work on.

@intitni
Copy link
Owner

intitni commented Nov 25, 2023

@emrdgrmnci Glad to hear that. Please send me the crash log if possible. You can find it from the Console.app.

@emrdgrmnci
Copy link

@varyP
Copy link

varyP commented Nov 30, 2023

@intitni any idea on this?
copilot-chat

API Key added & test is a success in the host app settings. /run commands work but anything else does not work in the chat and gives this SSL error

@intitni
Copy link
Owner

intitni commented Nov 30, 2023

@varyP Sorry I have no idea if the test in the host app is a success.. Can you show me the chat model settings?

@varyP
Copy link

varyP commented Nov 30, 2023

@varyP Sorry I have no idea if the test in the host app is a success.. Can you show me the chat model settings?

image

@intitni
Copy link
Owner

intitni commented Nov 30, 2023

@varyP I have updated the app to dump more information about the chat error. Please send a message in the chat panel and post the detailed error message here.

https://drive.google.com/file/d/1jfsm1yzoiNTtcDL9ftXiH8JryrdDCmSC/view?usp=share_link

@wnykuang
Copy link

wnykuang commented Jan 28, 2024

Is it possible to use github copilot to suppurt code chat? Just like vscode github copilot's feature?

Never mind, I figured it out.
Q: Can I use the GitHub Copilot Chat
A: No, they don't have any public API for it yet.

@intitni
Copy link
Owner

intitni commented Jan 29, 2024

Is it possible to use github copilot to suppurt code chat? Just like vscode github copilot's feature?

Never mind, I figured it out. Q: Can I use the GitHub Copilot Chat A: No, they don't have any public API for it yet.

@wnykuang Actually there is a possible solution now, but not validated yet. Please keep an eye on this issue #380

You can also find a workaround solution at the very bottom of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants