SL LLMs icon

SL LLMs

StrangeLogic LLM Node

Overview

This node integrates with an external AI service to perform two main operations: generating text responses from a prompt or processing videos via a provided URL. The "Process Video" operation sends a video URL along with a user prompt to the AI service, which presumably analyzes or processes the video content and returns a response. This node is useful for automating video content analysis, extracting insights, or generating descriptions based on video input.

Practical examples include:

  • Automatically generating summaries or captions for videos by providing their URLs.
  • Analyzing video content for specific information or metadata extraction.
  • Using AI to interpret or respond to video content in workflows that require multimedia understanding.

Properties

Name Meaning
Video URL URL of the video to be processed.
Model Type Selects the AI model to use for text generation. Options include various Gemini, Llama, Mistral, Mixtral, and WizardLM models.
Prompt A text prompt that you want the AI model to respond to.

Note: For the "Process Video" operation, only "Video URL" and "Prompt" are relevant. The "Model Type" property is hidden when the operation is "video".

Output

The node outputs JSON data containing the response from the AI service:

  • For the "Process Video" operation, the output JSON contains the result returned by the /process-video API endpoint, which likely includes processed video information or analysis results.
  • The output is wrapped as { json: <API response> }.
  • If an error occurs during the API request, the output JSON will contain an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the external AI service.
  • The node makes HTTP POST requests to the AI service domain specified in the credentials.
  • The /process-video endpoint is used for video processing.
  • Proper configuration of the API domain and authentication token is necessary in n8n credentials.

Troubleshooting

  • No credentials returned!
    This error indicates missing or misconfigured API credentials. Ensure that the required API key credential is set up correctly in n8n.

  • API request failures (network errors, timeouts, invalid responses)
    These errors occur if the AI service is unreachable or returns an error. Check network connectivity, API domain correctness, and validity of the API key.

  • Invalid or empty Video URL
    Providing an invalid or empty video URL may cause the API to fail or return unexpected results. Verify the URL before running the node.

  • Handling errors with Continue On Fail enabled
    When enabled, the node captures errors per item and outputs them in the JSON under an error field instead of stopping execution.

Links and References

  • No direct links available from the source code.
  • Refer to your AI service provider's documentation for details on the /process-video API endpoint and supported models.

Discussion