Skip to content

Commit cb94ab9

Browse files
committed
feat: add privacy policy for serverless Workers AI
1 parent 1fc7f09 commit cb94ab9

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@
210210
<button id="code_accept">{{$t('llm.accept')}}</button>
211211
<button id="code_reject">{{$t('llm.reject')}}</button>
212212
<div id="generating" class="loader"></div>
213-
<div id="llama3" v-show="llm==='llama'||llm==='llama-serverless'">{{$t('llm.llama3')}}</div>
213+
<div id="llama3" v-show="llm==='llama'">{{$t('llm.llama3')}}</div>
214+
<div id="llama3-serverless" v-show="llm==='llama-serverless'" v-html="$t('llm.llama3-serverless')"></div>
214215
<div id="glm" v-show="llm==='glm'" v-html="$t('llm.glm4')"></div>
215216
</div>
216217
</div>

lang/chs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const chs = {
145145
"accept": "接受",
146146
"reject": "拒绝",
147147
"llama3": "使用 Llama 3 构建",
148+
"llama3-serverless": "Llama 3 <a href='https://developers.cloudflare.com/workers-ai/platform/data-usage/' target='_blank' style='text-decoration: underline'>隐私政策</a>",
148149
"glm4": "GLM-4.6 <a href='https://docs.bigmodel.cn/cn/terms/privacy-policy' target='_blank' style='text-decoration: underline'>隐私政策</a>"
149150
},
150151
"doc": {

lang/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ const en = {
146146
"accept": "Accept",
147147
"reject": "Reject",
148148
"llama3": "Built with Llama3",
149+
"llama3-serverless": "Llama 3 <a href='https://developers.cloudflare.com/workers-ai/platform/data-usage/' target='_blank' style='text-decoration: underline'>Privacy Policy</a>",
149150
"glm4": "GLM-4.6 <a href='https://docs.z.ai/legal-agreement/privacy-policy' target='_blank' style='text-decoration: underline'>Privacy Policy</a>"
150151
},
151152
"doc": {

main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ input[type=text]{
797797
gap: 3px;
798798
}
799799

800-
#llama3, #glm {
800+
#llama3, #llama3-serverless, #glm {
801801
margin-left: auto;
802802
color: gray;
803803
font-size: small;

0 commit comments

Comments
 (0)