Open jumski opened 7 months ago
PR #407 will allow user to provide a Lua function to obtain the key. I've included an example of which uses a http request to obtain the key. Maybe you can whip up a Lua function that can create interactive session and obtain the key. Good luck
@rameshsanth that sounds great, it will definitely allow me to solve it elegantly. Thank you
I have written a simple script that i want to use to get OpenAI API key from bitwarden vault using bitwarden-cli:
it is correctly called (verified by logging date from this script to a tmp log file) but given the session is noninteractive, Bitwarden CLI does not prompt for a password and just silently fails without printing on stdout.
Is there a way in ChatGPT.nvim to make api_key_cmd be called interactively so user can input a password?
It is relevant to #322