'description':'According to the user\'s stated requirements, mermaid code blocks are generated by AI, and the code blocks are rendered into corresponding SVG vector drawings.',
'mode':'chat',
'model_config':AppModelConfig(
provider='openai',
model_id='gpt-3.5-turbo',
configs={
'introduction':'Warm reminder: Click 👍 for correct reply and 👎 for inaccurate reply, which will help me further improve myself and greatly improve the accuracy of reply to similar questions. Hello, please tell me about your image generation needs: ',
'prompt_template':"You will play as a mermaid graphics generator, generating code blocks that conform to mermaid format requirements based on user scenario descriptions. \n\n[Note]\n\n- Output mermaid code blocks only, no other explanation. \nLet\'s think step by step.\n",
'prompt_variables':[],
'completion_params':{
'max_token':300,
'temperature':0.8,
'top_p':0.9,
'presence_penalty':0.1,
'frequency_penalty':0.1,
}
},
opening_statement='Warm reminder: Click 👍 for correct reply and 👎 for inaccurate reply, which will help me further improve myself and greatly improve the accuracy of reply to similar questions. Hello, please tell me about your image generation needs: ',
suggested_questions=None,
pre_prompt="You will play as a mermaid graphics generator, generating code blocks that conform to mermaid format requirements based on user scenario descriptions. \n\n[Note]\n\n- Output mermaid code blocks only, no other explanation. \nLet\'s think step by step.\n",
apiSecretKeyTips:"To prevent API abuse, protect your API Key. Avoid using it as plain text in front-end code. :)",
never:'Never',
createNewSecretKey:"Create new Secret key",
apiKeyModal:{
secretKey:"Secret Key",
apiSecretKey:'API Secret key',
created:"CREATED",
apiSecretKeyTips:'To prevent API abuse, protect your API Key. Avoid using it as plain text in front-end code. :)',
lastUsed:"LAST USED",
createNewSecretKey:'Create new Secret key',
generateTips:"Keep this key in a secure and accessible place."
secretKey:'Secret Key',
},
created:'CREATED',
actionMsg:{
lastUsed:'LAST USED',
deleteConfirmTitle:"Delete this secret key?",
generateTips:'Keep this key in a secure and accessible place.',
deleteConfirmTips:"This action cannot be undone.",
},
ok:"OK"
actionMsg:{
},
deleteConfirmTitle:'Delete this secret key?',
completionMode:{
deleteConfirmTips:'This action cannot be undone.',
title:"Completion App API",
ok:'OK',
info:"For high-quality text generation, such as articles, summaries, and translations, use the completion-messages API with user input. Text generation relies on the model parameters and prompt templates set in Dify Prompt Engineering.",
},
createCompletionApi:"Create Completion Message",
completionMode:{
createCompletionApiTip:"Create a Completion Message to support the question-and-answer mode.",
title:'Completion App API',
inputsTips:"(Optional) Provide user input fields as key-value pairs, corresponding to variables in Prompt Eng. Key is the variable name, Value is the parameter value. If the field type is Select, the submitted Value must be one of the preset choices.",
info:'For high-quality text generation, such as articles, summaries, and translations, use the completion-messages API with user input. Text generation relies on the model parameters and prompt templates set in Dify Prompt Engineering.',
queryTips:"User input text content.",
createCompletionApi:'Create Completion Message',
blocking:"Blocking type, waiting for execution to complete and returning results. (Requests may be interrupted if the process is long)",
createCompletionApiTip:'Create a Completion Message to support the question-and-answer mode.',
streaming:"streaming returns. Implementation of streaming return based on SSE (Server-Sent Events).",
inputsTips:'(Optional) Provide user input fields as key-value pairs, corresponding to variables in Prompt Eng. Key is the variable name, Value is the parameter value. If the field type is Select, the submitted Value must be one of the preset choices.',
messageFeedbackApi:"Message feedback (like)",
queryTips:'User input text content.',
messageFeedbackApiTip:"Rate received messages on behalf of end-users with likes or dislikes. This data is visible in the Logs & Annotations page and used for future model fine-tuning.",
blocking:'Blocking type, waiting for execution to complete and returning results. (Requests may be interrupted if the process is long)',
messageIDTip:"Message ID",
streaming:'streaming returns. Implementation of streaming return based on SSE (Server-Sent Events).',
messageFeedbackApiTip:'Rate received messages on behalf of end-users with likes or dislikes. This data is visible in the Logs & Annotations page and used for future model fine-tuning.',
parametersApiTip:"Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads."
parametersApiTip:'Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.',
info:"For versatile conversational apps using a Q&A format, call the chat-messages API to initiate dialogue. Maintain ongoing conversations by passing the returned conversation_id. Response parameters and templates depend on Dify Prompt Eng. settings.",
},
createChatApi:"Create chat message",
chatMode:{
createChatApiTip:"Create a new conversation message or continue an existing dialogue.",
title:'Chat App API',
inputsTips:"(Optional) Provide user input fields as key-value pairs, corresponding to variables in Prompt Eng. Key is the variable name, Value is the parameter value. If the field type is Select, the submitted Value must be one of the preset choices.",
info:'For versatile conversational apps using a Q&A format, call the chat-messages API to initiate dialogue. Maintain ongoing conversations by passing the returned conversation_id. Response parameters and templates depend on Dify Prompt Eng. settings.',
queryTips:"User input/question content",
createChatApi:'Create chat message',
blocking:"Blocking type, waiting for execution to complete and returning results. (Requests may be interrupted if the process is long)",
createChatApiTip:'Create a new conversation message or continue an existing dialogue.',
streaming:"streaming returns. Implementation of streaming return based on SSE (Server-Sent Events).",
inputsTips:'(Optional) Provide user input fields as key-value pairs, corresponding to variables in Prompt Eng. Key is the variable name, Value is the parameter value. If the field type is Select, the submitted Value must be one of the preset choices.',
conversationIdTip:"(Optional) Conversation ID: leave empty for first-time conversation; pass conversation_id from context to continue dialogue.",
queryTips:'User input/question content',
messageFeedbackApi:"Message terminal user feedback, like",
blocking:'Blocking type, waiting for execution to complete and returning results. (Requests may be interrupted if the process is long)',
messageFeedbackApiTip:"Rate received messages on behalf of end-users with likes or dislikes. This data is visible in the Logs & Annotations page and used for future model fine-tuning.",
streaming:'streaming returns. Implementation of streaming return based on SSE (Server-Sent Events).',
messageIDTip:"Message ID",
conversationIdTip:'(Optional) Conversation ID: leave empty for first-time conversation; pass conversation_id from context to continue dialogue.',
ratingTip:"like or dislike, null is undo",
messageFeedbackApi:'Message terminal user feedback, like',
chatMsgHistoryApi:"Get the chat history message",
messageFeedbackApiTip:'Rate received messages on behalf of end-users with likes or dislikes. This data is visible in the Logs & Annotations page and used for future model fine-tuning.',
chatMsgHistoryApiTip:"The first page returns the latest `limit` bar, which is in reverse order.",
parametersApiTip:"Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads."
conversationRenamingApiTip:'Rename conversations; the name is displayed in multi-session client interfaces.',
parametersApiTip:'Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.',