Open nahatx opened 1 year ago
https://github.com/ugik/notebooks/blob/08aa81880a154361d84bc0c08b0a949adfc14236/langChainFuncs.py#L108
Howdy,
Do not expose your API key in your source code.
Instead, consider storing it an environment variable, or using a key management service, or even software such as Vault. Then be sure to rotate your API key after it is safely stored, or else it may still be recoverable in your commit history.
Also, see Openai's best practices page for api keys for more details: https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
https://github.com/ugik/notebooks/blob/08aa81880a154361d84bc0c08b0a949adfc14236/langChainFuncs.py#L108
Howdy,
Do not expose your API key in your source code.
Instead, consider storing it an environment variable, or using a key management service, or even software such as Vault. Then be sure to rotate your API key after it is safely stored, or else it may still be recoverable in your commit history.
Also, see Openai's best practices page for api keys for more details: https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety