MakeHub AI icon

MakeHub AI

Interact with MakeHub AI LLM API

Overview

This node integrates with the MakeHub AI large language model (LLM) API to generate chat completions using any supported LLM model. It allows users to send a sequence of messages with specified roles (user, assistant, system) and receive AI-generated responses. This is useful for automating conversational AI tasks such as chatbots, virtual assistants, content generation, or any scenario requiring natural language understanding and generation.

For example, you can use this node to:

  • Build a customer support chatbot that responds based on user queries.
  • Generate creative writing prompts or story continuations.
  • Summarize or transform text inputs interactively.

Properties

Name Meaning
Model Name or ID Select an LLM model from a dynamically loaded list or specify a model ID via expression.
Messages A collection of messages forming the conversation history. Each message has:
- Role: one of Assistant, System, or User.
- Content: the textual content of the message.
Min Throughput Settings Controls minimum throughput preferences:
- Modes: Best Price, Custom Value, Best Performance.
- If Custom Value selected, specify tokens per second.
Max Latency Settings Controls maximum latency preferences:
- Modes: Best Price, Custom Value, Best Performance.
- If Custom Value selected, specify milliseconds.
Simplify Output Boolean flag to return only the AI's response message content instead of the full API response object.
Additional Fields Optional parameters:
- Max Tokens: max number of tokens to generate.
- Temperature: randomness control (0 = deterministic, 1 = random).
- Stream: whether to stream partial results back during generation.

Output

The node outputs JSON data representing the AI completion result:

  • If Simplify Output is enabled, output is an array of objects each containing:
    {
      "content": "The AI-generated response text"
    }
    
  • Otherwise, the full API response is returned, which includes detailed information such as choices, usage, and metadata from the MakeHub API.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the MakeHub AI API.
  • The node makes HTTP POST requests to https://api.makehub.ai/v1/chat/completions.
  • The list of available models is fetched dynamically from https://api.makehub.ai/v1/models.

Troubleshooting

  • No models available: If the model list is empty, ensure your API key is valid and has access to the MakeHub API.
  • Expression evaluation errors: When using expressions in message content, syntax errors or invalid references may cause failures. Check expression syntax carefully.
  • API request failures: Network issues or invalid credentials will cause HTTP request errors. Verify API key correctness and network connectivity.
  • Unexpected response structure: If the API changes its response format, the node might fail to parse it correctly. Update the node or check API documentation for changes.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output.

Links and References

Discussion