Hi again,
I answer myself

Solved with Terminal command:

launchctl setenv OPENAI_TOKEN thetoken

Best

— — — 
Juan Miguel Escribano

> El 21 dic 2023, a las 11:45, Juan Miguel Escribano <juan.es...@gmail.com> 
> escribió:
> 
> Hi all,
> 
> I’m trying this plugin, in Usage says:
> 
> "Before you can use this plugin, you need to set the OPENAI_TOKEN environment 
> variable with your OpenAI API key. Below are instructions for different 
> operating systems:
> 
> Setting the OPENAI_TOKEN Environment Variable
> 
> Unix-like Systems (Linux, macOS)
> 
> Open a terminal and run the following command to set the environment 
> variable. This will be temporary and limited to the current session:
> 
> export OPENAI_TOKEN=your_token_here
> To make it permanent, add the line to your shell configuration file 
> (~/.bashrc, ~/.zshrc, etc.):
> 
> echo 'export OPENAI_TOKEN=your_token_here' >> ~/.bashrc  # For Bash
> echo 'export OPENAI_TOKEN=your_token_here' >> ~/.zshrc   # For Zsh”
> 
> It is done but the plugin, in Netbeans, still says: 
> 
> OPENAL_ TOKEN environment variable is not defined.
> Please restart NetBeans after defining this variable.
> 
> It seems that Netbeans do not read my system environments variables.
> Any way to make it do?
> 
> Thank you!!!
> 
> — — — 
> Juan Miguel Escribano
> 
>> El 21 dic 2023, a las 10:38, Michael Bien <mbie...@gmail.com> escribió:
>> 
>> On 20.12.23 21:01, Greenberg, Gary wrote:
>>> Are there any attempts to add GenAi, Github Copilot or ChatGPT to Netbeans?
>> 
>> a NB ChatGPT plugin would be here:
>> https://github.com/Hillrunner2008/netbeans-chatgpt
>> 
>> don't know about any other plugin in that area (which doesn't mean they 
>> don't exist of course)
>> 
>> best regards,
>> michael
>> 
>>> Our company is pushing developers to switch to IntelliJ with Github 
>>> Copilot, but I do not want to leave Netbeans that I am using for almost 
>>> quarter of a century.
>>> 
>>> Gary Greenberg
>>> Staff Software Engineer
> 

Reply via email to