mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
@@ -7,7 +7,7 @@ from langchain_nvidia_aiplay import NVIDIAEmbeddings
|
||||
from langchain_text_splitters.character import CharacterTextSplitter
|
||||
|
||||
if os.environ.get("NVIDIA_API_KEY", "").startswith("nvapi-"):
|
||||
print("Valid NVIDIA_API_KEY already in environment. Delete to reset") # noqa: T201
|
||||
print("Valid NVIDIA_API_KEY already in environment. Delete to reset")
|
||||
else:
|
||||
nvapi_key = getpass.getpass("NVAPI Key (starts with nvapi-): ")
|
||||
assert nvapi_key.startswith("nvapi-"), f"{nvapi_key[:5]}... is not a valid key"
|
||||
|
Reference in New Issue
Block a user