Replies: 2 comments
-
same here +1 Solution: Put your command in a script file and call the script file instead. ex: get_api_key.sh #!/bin/bash
rbw get -f OPENAI_API_KEY chat.openai.com | awk '{print $2} in config file api_key_cmd = "get_api_key.sh" It works for me. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I originally stated that I created a script as a work around. Is it not possible to take a string as input rather than an single array element? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ChatGPT.nvim/lua/chatgpt/api.lua
Line 174 in 8191b4a
Is there a way this can be changed so I can use a pipe in my command?
I'd like to use:
Using only
rbw get -f OPENAI_API_KEY chat.openai.com
gets a custom field from the entry but its output format is:so I need to pipe to awk, sed, cut, jq or something. I wrote a wrapper script which works, but this is not ideal for having my config files be portable.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions