Skip to content

Commit aff6b14

Browse files
committed
feat: support enable collect
1 parent 64527d3 commit aff6b14

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

publish-api.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,10 @@ Parameters:
120120
service: fc
121121
authorities:
122122
- AliyunFCDefaultRolePolicy
123-
- AliyunFCFullAccess
123+
- AliyunFCFullAccess
124+
enableCollect:
125+
title: 协助改善体验
126+
type: boolean
127+
default: true
128+
description: |+
129+
通过开启该功能,可以将您的非敏感操作共享给我们,以便优化和改善应用。非敏感操作指 Stable Diffusion 使用、报错信息,不涉及提示词、参数、生成出的图片等敏感数据。

publish-plus.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,10 @@ Parameters:
120120
service: fc
121121
authorities:
122122
- AliyunFCDefaultRolePolicy
123-
- AliyunFCFullAccess
123+
- AliyunFCFullAccess
124+
enableCollect:
125+
title: 协助改善体验
126+
type: boolean
127+
default: true
128+
description: |+
129+
通过开启该功能,可以将您的非敏感操作共享给我们,以便优化和改善应用。非敏感操作指 Stable Diffusion 使用、报错信息,不涉及提示词、参数、生成出的图片等敏感数据。

publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ Parameters:
5151
enum:
5252
- SD1.5
5353
- 动漫风格
54-
- 真人风格
54+
- 真人风格
55+
enableCollect:
56+
title: 协助改善体验
57+
type: boolean
58+
default: true
59+
description: |+
60+
通过开启该功能,可以将您的非敏感操作共享给我们,以便优化和改善应用。非敏感操作指 Stable Diffusion 使用、报错信息,不涉及提示词、参数、生成出的图片等敏感数据。

src/s.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ vars:
88
imageUrl: "registry.{{region}}.aliyuncs.com/aliyun-fc/fc-stable-diffusion:{{ if type === '动漫风格' }}anime-v7{{ else if type === '真人风格'}}realman-v7{{ else }}sd1.5-v7{{/if}}"
99
filemgrToken: "{{ filemgrToken || '' }}"
1010
extraArgs: "{{ extraArgs || '' }}{{ if webuiEnabled === false }} --nowebui{{/if}}{{ if webuiAuth !== '' && webuiAuth !== undefined }} --gradio-auth {{webuiAuth}}{{/if}}{{ if apiEnabled }} --api{{/if}}{{ if apiAuth !== '' && apiAuth !== undefined }} --api-auth {{apiAuth}}{{/if}}"
11+
enableCollect: "{{ enableCollect || '' }}"
1112
service:
1213
name: ${vars.serviceName}
1314
description: 'stable-diffusion 部署到函数计算'
@@ -48,6 +49,7 @@ services:
4849
asyncConfiguration: {}
4950
environmentVariables:
5051
EXTRA_ARGS: ${vars.extraArgs}
52+
ENABLE_COLLECT: ${vars.enableCollect}
5153
triggers:
5254
- name: defaultTrigger
5355
description: ''
@@ -92,6 +94,7 @@ services:
9294
- ./server
9395
environmentVariables:
9496
TOKEN: ${vars.filemgrToken}
97+
ENABLE_COLLECT: ${vars.enableCollect}
9598
SD_VERSION: ""
9699
SD_FUNCTION_NAME: ${stable-diffusion.props.function.name}
97100
SD_DOMAIN: ${stable-diffusion.output.url.custom_domain[0].domain}

0 commit comments

Comments
 (0)