avante.nvim icon indicating copy to clipboard operation
avante.nvim copied to clipboard

Draft: Allow for custom OPENAI_API_KEY in rag_service

Open m4r1vs opened this issue 9 months ago • 1 comments

closes #1728

Had do modify the parser of env variables because it did not block the request which meant that the rag_service started before the API key has actually been parsed.

m4r1vs avatar Mar 26 '25 10:03 m4r1vs

Also I noticed that sometimes I start typing before 1pw has loaded the creds. I now set the parser to synchronously load the variables always which fixes it for me. However, I can see that this might not be optimal for everyone.

Should we provide this (very technical) option through lua config or maybe still do it always and maybe add another pre_fetch function which populates the cache?

m4r1vs avatar Mar 26 '25 10:03 m4r1vs

This seems to be already implemented. See https://github.com/yetone/avante.nvim/wiki#secrets

Uzaaft avatar Apr 20 '25 21:04 Uzaaft

This seems to be already implemented. See https://github.com/yetone/avante.nvim/wiki#secrets

haven't checked yet if there was an update but when I made the PR, it was only possible to use the cmd secrets for the "normal" API keys, not the API key used for the rag service. However, I just rebased my branch and seems like there's been some work in regards to the RAG API key, will check and close this PR if so

m4r1vs avatar Apr 23 '25 11:04 m4r1vs

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 14 '25 02:05 github-actions[bot]

This PR was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 27 '25 02:05 github-actions[bot]