You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use op as my api_key_cmd, but this only works if the OPENAI_API_KEY env var is not set.
I have exported my OPENAI_API_KEY to "op://Personal/OPENAI_API_KEY/credential" to be able to use the op run command to expand that variable and pass it to selected subprocesses, but this breaks the plugin because it seems that it defaults to get its api_key from env vars even if an api_key_cmd is set.
To me, the opposite behavior should be preferred.
The text was updated successfully, but these errors were encountered:
Ohhhhh Thanks a lot because your issue made me understand why I had issues with launching the app through SSH or not. It was because I was setting the environment viable in just one of the two cases. Thanks a lot.
I'm interested to know if anything has changed. And I don't think we should need to set in two places although I have been needing to do this in the last few weeks.
What I can suggest is getting the api_key locally in lua first via a function, and then wiring it to api_key_cmd simply by echo.
api_key_cmd wants a command, so you may as well simply echo the response as a command. Have tried here: #454
What I can suggest is getting the api_key locally in lua first via a function, and then wiring it to api_key_cmd simply by echo. api_key_cmd wants a command, so you may as well simply echo the response as a command. Have tried here: #454
Sorry for the late reply, but this seems promising. I'll look into it and get back sooner or later!
I use
op
as myapi_key_cmd
, but this only works if the OPENAI_API_KEY env var is not set.I have exported my OPENAI_API_KEY to "op://Personal/OPENAI_API_KEY/credential" to be able to use the
op run
command to expand that variable and pass it to selected subprocesses, but this breaks the plugin because it seems that it defaults to get its api_key from env vars even if anapi_key_cmd
is set.To me, the opposite behavior should be preferred.
The text was updated successfully, but these errors were encountered: