Visit ComfyUI Online for ready-to-use ComfyUI environment
Securely store API keys for language model providers, streamlining workflow for AI artists.
The TaraApiKeySaver
node is designed to securely store API keys for various language model providers, ensuring that your integration with these services is seamless and efficient. This node allows you to save API keys for providers such as groq
, openai
, and together
, either temporarily or permanently, depending on your needs. By using this node, you can manage your API keys in a structured manner, reducing the risk of misplacing or exposing sensitive information. The primary function of this node is to write the provided API key to a file, which can be accessed later by other nodes or processes, thereby streamlining the workflow for AI artists who need to interact with different language models.
The provider
parameter specifies the language model service for which the API key is being saved. It accepts three options: groq
, openai
, and together
. This parameter is crucial as it determines the specific field in the configuration file where the API key will be stored. Selecting the correct provider ensures that the key is saved in the appropriate location for future retrieval.
The api_key
parameter is a string that represents the API key you wish to save. This key is essential for authenticating requests to the specified provider's API. The api_key
should be a valid string provided by the service provider, and it is recommended to keep this key confidential to prevent unauthorized access.
The temporary
parameter is a boolean that indicates whether the API key should be saved temporarily or permanently. If set to True
, the key will be stored in a temporary directory (/tmp
), which is useful for short-term usage or testing purposes. If set to False
, the key will be saved in the default directory, making it available for long-term use. The default value for this parameter is False
.
The TaraApiKeySaver
node does not produce any output parameters. Its primary function is to save the API key to a file, and it does not return any values upon completion.
provider
to avoid saving the API key in the wrong field.temporary
parameter for testing purposes to prevent cluttering your permanent storage with temporary keys.api_key
value before saving to ensure it is correct and valid to avoid authentication issues later.SERVICE_TO_KEY_FIELD
mapping.provider
parameter is set to one of the accepted values (groq
, openai
, together
). If the provider is correct, check the SERVICE_TO_KEY_FIELD
mapping for any discrepancies.© Copyright 2024 RunComfy. All Rights Reserved.