Initial Commit

This commit is contained in:
Will Tesler
2026-02-22 07:34:57 -06:00
parent 40107a31e2
commit 8e0498bc44
3 changed files with 44 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
class EnvVariableNode:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"key": (
"STRING",
{
"default": "OPENAI_API_KEY",
"multiline": False,
},
),
}
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("value",)
FUNCTION = "get_value"
CATEGORY = "utils"
def get_value(self, key):
import os
return (os.environ.get(key, ""),)