17 lines
No EOL
827 B
Text
17 lines
No EOL
827 B
Text
Generative AI is one of the features of Code Assist. If you have any ethical or legal concerns, you can use Code Assist without this feature by disabling generative AI in the options.
|
|
|
|
You need an OpenAI account and provide it's API key to this asset.
|
|
https://platform.openai.com/account/api-keys
|
|
|
|
Provide key by one of the below
|
|
* Create an environment variable called OPENAI_API_KEY with the API key
|
|
* Create a file with name .openai under user profile directory with the API key
|
|
* Set API key in Visual Studio options, Tools->Options->Unity Code Assist->Generative AI->Authentication
|
|
|
|
This asset has one-time purchase fee, but you may need to pay extra for OpenAI services to use Generative AI feature.
|
|
https://openai.com/pricing
|
|
|
|
To use generative AI with your comments:
|
|
* Type "//gpt "
|
|
* Type your prompt
|
|
* Press Enter key |