Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

read the key value from .authinfo or some equivalent instead of init file #8

Closed
vxe opened this issue Mar 23, 2023 · 1 comment
Closed

Comments

@vxe
Copy link

vxe commented Mar 23, 2023

I'm doing something like

(setq chatgpt-arcana-api-key (auth-source-pick-first-password
                                              :host "chat.openai.com"))

with an ~/.authinfo that looks like

machine chat.openai.com login CHATGPT_EMAIL password API_KEY

so i don't accidentally make my key publicly available. great package btw, really enjoying the user experience

@CarlQLange
Copy link
Owner

That's a great idea, it would never have occurred to me. I will probably add this as instructions to the readme rather than the package itself.

Glad you like the package!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants