ComfyUI Node

Groq LLM

Uses Groq API to generate text from language models with conversation context.

By Apache0ne·Created 2 years ago·Updated 2 years ago· 0
Groq LLM
    • api_response
    • success
    • status_code
    • conversation_id
    • chat_history
    model
    preset
    system_message
    user_input
    temperature0.85
    max_tokens1024
    top_p1.00
    seed42
    max_retries2
    stop
    json_modefalse
    conversation_id
    Categoryapachellmpack

    Inputs (12)

    NameTypeDefaultDescription
    modelCOMBOSelect the Large Language Model (LLM) to use.
    presetCOMBOSelect a preset or custom prompt for guiding the LLM.
    system_messageSTRINGOptional system message to guide the LLM's behavior.
    user_inputSTRINGUser input or prompt to generate a response from the LLM.
    temperatureFLOAT0.850.1–2Controls randomness in responses.
    max_tokensINT10241–131072Maximum number of tokens to generate in the response.
    top_pFLOAT1.000.1–1Limits the pool of words the model can choose from based on their combined probability.
    seedINT420–4294967295Seed for random number generation, ensuring reproducibility.
    max_retriesINT21–10Maximum number of retries in case of request failure.
    stopSTRINGStop generation when the specified sequence is encountered.
    json_modeBOOLEANfalseEnable JSON mode for structured output.
    conversation_idSTRINGUnique identifier for the conversation. Leave empty for a new conversation.

    Outputs (5)

    NameTypeDescription
    api_responseSTRINGThe API response. This is the text generated by the model
    successBOOLEANWhether the request was successful
    status_codeSTRINGThe status code of the request
    conversation_idSTRINGThe unique identifier for the conversation
    chat_historySTRINGThe complete chat history