Skip to content

ERNIE Bot Chat Prompt Model

Function Description

TIP

Used to retrieve the content of templates from the Prompt project

ERNIE Bot Chat Prompt Model

Configuration Item Description

General

Command Input

  • Template IDinteger: Enter the Prompt template ID, which can be obtained by creating a template on the Baidu Smart Cloud Qianfan Large Model Platform

  • Variable Namestring: The name of the variable inserted into the Prompt template

  • Variable Valuestring: The value corresponding to the variable inserted into the Prompt template

Command Output

  • Save the returned result tostring: Specify a variable to store the returned text

Advanced

  • Timeout (milliseconds)Integer: Maximum wait time (milliseconds)

  • Proxy Parametersstring: When our program cannot directly connect to the target network but the other party has installed a proxy server in the format Address:Port

  • DelayBefore(milliseconds)Integer: The waiting time before instruction execution

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None