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.
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 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.