diff --git a/DSL/Artifact.yml b/DSL/Artifact.yml new file mode 100644 index 0000000..540d83d --- /dev/null +++ b/DSL/Artifact.yml @@ -0,0 +1,162 @@ +app: + description: Artifact + icon: 🤖 + icon_background: '#FFEAD5' + mode: advanced-chat + name: Artifact + use_icon_as_answer_icon: false +dependencies: +- current_identifier: null + type: marketplace + value: + marketplace_plugin_unique_identifier: langgenius/volcengine_maas:0.0.7@f8e44422cfa5b9a6ac1f2d3b43ef1069868efdad1e5cec2590de3f53ceac37b0 +kind: app +version: 0.2.0 +workflow: + conversation_variables: [] + environment_variables: [] + features: + file_upload: + allowed_file_extensions: + - .JPG + - .JPEG + - .PNG + - .GIF + - .WEBP + - .SVG + allowed_file_types: + - image + allowed_file_upload_methods: + - local_file + - remote_url + enabled: false + fileUploadConfig: + audio_file_size_limit: 50 + batch_count_limit: 5 + file_size_limit: 15 + image_file_size_limit: 10 + video_file_size_limit: 100 + workflow_file_upload_limit: 10 + image: + enabled: false + number_limits: 3 + transfer_methods: + - local_file + - remote_url + number_limits: 3 + opening_statement: '' + retriever_resource: + enabled: true + sensitive_word_avoidance: + enabled: false + speech_to_text: + enabled: false + suggested_questions: [] + suggested_questions_after_answer: + enabled: false + text_to_speech: + enabled: false + language: '' + voice: '' + graph: + edges: + - data: + sourceType: start + targetType: llm + id: 1745404962666-llm + source: '1745404962666' + sourceHandle: source + target: llm + targetHandle: target + type: custom + - data: + sourceType: llm + targetType: answer + id: llm-answer + source: llm + sourceHandle: source + target: answer + targetHandle: target + type: custom + nodes: + - data: + desc: '' + selected: false + title: 开始 + type: start + variables: [] + height: 52 + id: '1745404962666' + position: + x: 80 + y: 282 + positionAbsolute: + x: 80 + y: 282 + sourcePosition: right + targetPosition: left + type: custom + width: 243 + - data: + context: + enabled: false + variable_selector: [] + desc: '' + memory: + query_prompt_template: '{{#sys.query#}}' + role_prefix: + assistant: '' + user: '' + window: + enabled: true + size: 10 + model: + completion_params: {} + mode: chat + name: deepseek-v3-250324 + provider: langgenius/volcengine_maas/volcengine_maas + prompt_template: + - role: system + text: 你是一个小助手 + selected: true + title: LLM + type: llm + variables: [] + vision: + enabled: false + height: 88 + id: llm + position: + x: 380 + y: 282 + positionAbsolute: + x: 380 + y: 282 + selected: true + sourcePosition: right + targetPosition: left + type: custom + width: 243 + - data: + answer: '{{#llm.text#}}' + desc: '' + selected: false + title: 直接回复 + type: answer + variables: [] + height: 103 + id: answer + position: + x: 680 + y: 282 + positionAbsolute: + x: 680 + y: 282 + sourcePosition: right + targetPosition: left + type: custom + width: 243 + viewport: + x: 0 + y: 0 + zoom: 1 diff --git a/README.md b/README.md index 42c930d..a97036c 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,16 @@ sandbox 运行pandas,numpy>2.0,matplotlib,scikit-learn 代码老报错, 你可以参考下面每个 yml 的描述,找到你需要的 Workflow,然后在 DSL 文件夹中找到对应的文件,复制文件的 URL,导入自己的 Dify 账号即可。 +## 2025-04-23更新 + +| 文件 | 描述 | 来源 | +| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- | +| `Artifact.yml` |这是我开发的一个[DIFY插件](https://marketplace.dify.ai/plugins/svcvit/artifacts),类似claude的Artifact功能,可以渲染LLM生成的HTML代码和cavas。项目地址 https://github.com/svcvit/dify-plugin-artifacts 按照操作设置一下扩展即可使用。 ![](./snapshots/001.jpg) ![](./snapshots/005.jpg)| [dify-plugin-artifacts](https://github.com/svcvit/dify-plugin-artifacts) | + + + + + ## 2025-04-17更新 | 文件 | 描述 | 来源 | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- | diff --git a/snapshots/001.jpg b/snapshots/001.jpg new file mode 100644 index 0000000..d029286 Binary files /dev/null and b/snapshots/001.jpg differ diff --git a/snapshots/005.jpg b/snapshots/005.jpg new file mode 100644 index 0000000..19757e1 Binary files /dev/null and b/snapshots/005.jpg differ