FreeLim icon

FreeLim

逆向LLM

Overview

This node implements a conversational AI completion feature for the "海螺Ai" resource, specifically supporting the "对话补全" (dialogue completion) operation. It allows users to send a sequence of messages with roles (user, assistant, system) to an AI model or agent and receive a generated response that continues or completes the conversation.

Common scenarios include:

  • Building chatbots that simulate human-like conversations.
  • Creating virtual assistants that respond contextually based on prior messages.
  • Generating dialogue content for interactive applications or storytelling.

Practical example:
A user sends a message as "user" role asking a question, optionally sets some system instructions, and the AI responds in the "assistant" role, continuing the conversation naturally.

Properties

Name Meaning
模型 The AI model or intelligent agent identifier to use for generating responses.
消息 A collection of messages forming the conversation history. Each message includes:
- 文本: The text content of the message to send.
- 角色: The role shaping the model's response behavior. Options: 用户 (user), 助手 (assistant), 系统 (system).
简化输出 Whether to return a simplified version of the AI response instead of the full raw data. (true/false)
开启语音 Whether to enable text-to-speech (TTS) output for the response. (true/false)
语音列表 Selection of voice profiles for TTS output. Includes official voices and cloned voices selectable from a list.

Output

The node outputs JSON data representing the AI-generated completion of the conversation based on the input messages. If TTS is enabled, it may also provide audio data corresponding to the spoken version of the response.

  • json: Contains the AI's textual response and possibly metadata.
  • Binary data (if TTS enabled): Audio files of the response spoken in the selected voice.

Dependencies

  • Requires access to the 海螺Ai service API for conversational completions.
  • If TTS is enabled, requires configuration to access the text-to-speech voices provided by the service.
  • No explicit mention of credential types, but an API key or authentication token is implied for accessing the AI and TTS services.

Troubleshooting

  • Common issues:

    • Invalid or missing model identifier may cause failures or unexpected responses.
    • Improperly formatted messages (missing roles or content) can lead to errors or poor completions.
    • Enabling TTS without selecting a valid voice profile may result in errors or no audio output.
  • Error messages:

    • Authentication errors likely indicate missing or invalid API credentials.
    • Validation errors may occur if required properties like messages or voice selection are omitted.
    • Network or service unavailability errors suggest connectivity issues with the 海螺Ai API.

To resolve:

  • Ensure all required inputs are correctly set.
  • Verify API credentials and network connectivity.
  • Select appropriate voice profiles when using TTS.

Links and References

  • No direct external links found in the source code.
  • For more details, consult the 海螺Ai official documentation or API reference if available.

Discussion