forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
33 stars 8 forks source link

"SFDX: Generate Code With Einstein GPT" command unavailable #8

Closed prb-compquest closed 1 year ago

prb-compquest commented 1 year ago

Hello,

As required for v.0.14.0, I have installed all 3 vsix

image

image

image

However, when I am trying to load the command pallete for a .cls file only following options are available.

image

The GPT output panel doesn't show any issues except for the following message.

image

Please let us know how we can get it working.

AnanyaJha commented 1 year ago

Hi @prb-compquest ! Thanks so much for filing this issue. Could you share a screenshot of the bottom right-hand corner of your screen? I'm looking to see what the status of your "Einstein" icon is in the bottom status bar - take a look at the image below

Screenshot 2023-08-14 at 7 05 33 PM
AnanyaJha commented 1 year ago

Hi @prb-compquest - let me know what you're seeing for the above ^^ while you're still facing this error. Could you then try reloading your window by going into the Command Palette (CMD+SHFT+P) and searching for Developer: Reload Window? Try searching for the SFDX: Generate Code with Einstein GPT command then and let me know what you're seeing. Thanks so much!

prb-compquest commented 1 year ago

Thanks Ananya, I think it is because Einstein GPT hasn't been enabled in the org.

image

AnanyaJha commented 1 year ago

Hi @prb-compquest , thank you for checking! I had a feeling that might be the issue - I just went into the system and made the needed changes for your org. Let's give it a few minutes for the changes to propagate and then could you try the Reload Window steps mentioned above?

prb-compquest commented 1 year ago

Hi @AnanyaJha , still same issue I tried creating new scratch orgs but that didn't help either. Can you please confirm if the Dev Hub Org Id is "00D50000000JWSzEAO" and if we need to create scratch orgs with the GPT feature enabled probably in project-def.json?

AnanyaJha commented 1 year ago

Hi @prb-compquest , thanks for checking - there's a few extra steps for scratch orgs. Please activate Einstein GPT for Developers by turning on an add-on scratch org feature.

Edit and save the config/project-scratch-def.json file in your DX project to add the “EinsteinGPTForDevelopers” feature to your existing feature list.

For example: { "orgName": "Acme Company", "edition": "Developer", "features":[“Communities”, “ServiceCloud”, "EinsteinGPTForDevelopers"]

}

Detailed instructions can be found here

prb-compquest commented 1 year ago

Hi @AnanyaJha, we are getting the following error image

AnanyaJha commented 1 year ago

Hmm that's odd @prb-compquest thanks for sharing. @mingxuanzhangsfdx let's prioritize debugging this issue tomorrow - thank you!

AnanyaJha commented 1 year ago

Hi @prb-compquest - appreciate the patience, we've reset the permissions on your org. Could you try running it with the added scratch org feature again? Thank you!

prb-compquest commented 1 year ago

Thank you @AnanyaJha for addressing it. We are able to get code recommendations and have some GPT fun. I will update the team to start trialing it for code generation and provide feedbacks.

AnanyaJha commented 1 year ago

Awesome @prb-compquest - glad you all were able to get it working! Looking forward to hearing your feedback