Skip to content

Commit 52f0089

Browse files
committed
fix: a lot of typos using typos
Signed-off-by: yihong0618 <[email protected]>
1 parent 284bb7a commit 52f0089

File tree

15 files changed

+40
-40
lines changed

15 files changed

+40
-40
lines changed

api/commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ def migrate_knowledge_vector_database():
259259
skipped_count = 0
260260
total_count = 0
261261
vector_type = dify_config.VECTOR_STORE
262-
upper_colletion_vector_types = {
262+
upper_collection_vector_types = {
263263
VectorType.MILVUS,
264264
VectorType.PGVECTOR,
265265
VectorType.RELYT,
266266
VectorType.WEAVIATE,
267267
VectorType.ORACLE,
268268
VectorType.ELASTICSEARCH,
269269
}
270-
lower_colletion_vector_types = {
270+
lower_collection_vector_types = {
271271
VectorType.ANALYTICDB,
272272
VectorType.CHROMA,
273273
VectorType.MYSCALE,
@@ -307,7 +307,7 @@ def migrate_knowledge_vector_database():
307307
continue
308308
collection_name = ""
309309
dataset_id = dataset.id
310-
if vector_type in upper_colletion_vector_types:
310+
if vector_type in upper_collection_vector_types:
311311
collection_name = Dataset.gen_collection_name_by_id(dataset_id)
312312
elif vector_type == VectorType.QDRANT:
313313
if dataset.collection_binding_id:
@@ -323,7 +323,7 @@ def migrate_knowledge_vector_database():
323323
else:
324324
collection_name = Dataset.gen_collection_name_by_id(dataset_id)
325325

326-
elif vector_type in lower_colletion_vector_types:
326+
elif vector_type in lower_collection_vector_types:
327327
collection_name = Dataset.gen_collection_name_by_id(dataset_id).lower()
328328
else:
329329
raise ValueError(f"Vector store {vector_type} is not supported.")

api/core/app/apps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Due to the presence of tasks in App Runner that require long execution times, such as LLM generation and external requests, Flask-Sqlalchemy's strategy for database connection pooling is to allocate one connection (transaction) per request. This approach keeps a connection occupied even during non-DB tasks, leading to the inability to acquire new connections during high concurrency requests due to multiple long-running tasks.
44

5-
Therefore, the database operations in App Runner and Task Pipeline must ensure connections are closed immediately after use, and it's better to pass IDs rather than Model objects to avoid deattach errors.
5+
Therefore, the database operations in App Runner and Task Pipeline must ensure connections are closed immediately after use, and it's better to pass IDs rather than Model objects to avoid detach errors.
66

77
Examples:
88

api/core/model_runtime/docs/zh_Hans/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class XinferenceProvider(Provider):
9191
"""
9292
```
9393

94-
也可以直接抛出对应Erros,并做如下定义,这样在之后的调用中可以直接抛出`InvokeConnectionError`等异常。
94+
也可以直接抛出对应 Errors,并做如下定义,这样在之后的调用中可以直接抛出`InvokeConnectionError`等异常。
9595

9696
```python
9797
@property

api/core/tools/provider/builtin/aws/tools/transcribe_asr.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ parameters:
4444
default: true
4545
required: false
4646
label:
47-
en_US: Automactically Identify Language
47+
en_US: Automatically Identify Language
4848
zh_Hans: 自动识别语言
49-
pt_BR: Automactically Identify Language
49+
pt_BR: Automatically Identify Language
5050
human_description:
51-
en_US: Automactically Identify Language
51+
en_US: Automatically Identify Language
5252
zh_Hans: 自动识别语言
53-
pt_BR: Automactically Identify Language
54-
llm_description: Enable Automactically Identify Language
53+
pt_BR: Automatically Identify Language
54+
llm_description: Enable Automatically Identify Language
5555
form: form
5656
- name: identify_multiple_languages
5757
type: boolean
5858
required: false
5959
label:
60-
en_US: Automactically Identify Multiple Languages
60+
en_US: Automatically Identify Multiple Languages
6161
zh_Hans: 自动识别多种语言
62-
pt_BR: Automactically Identify Multiple Languages
62+
pt_BR: Automatically Identify Multiple Languages
6363
human_description:
64-
en_US: Automactically Identify Multiple Languages
64+
en_US: Automatically Identify Multiple Languages
6565
zh_Hans: 自动识别多种语言
66-
pt_BR: Automactically Identify Multiple Languages
67-
llm_description: Enable Automactically Identify Multiple Languages
66+
pt_BR: Automatically Identify Multiple Languages
67+
llm_description: Enable Automatically Identify Multiple Languages
6868
form: form
6969
- name: language_options
7070
type: string
@@ -74,10 +74,10 @@ parameters:
7474
zh_Hans: 语言种类选项
7575
pt_BR: Language Options
7676
human_description:
77-
en_US: Seperated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
77+
en_US: Separated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
7878
zh_Hans: 您可以指定两个或更多的语言代码来表示您认为可能出现在媒体中的语言。用|分隔,如 zh-CN|en-US
79-
pt_BR: Seperated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
80-
llm_description: Seperated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
79+
pt_BR: Separated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
80+
llm_description: Separated by |, e.g:zh-CN|en-US, You can specify two or more language codes that represent the languages you think may be present in your media
8181
form: llm
8282
- name: s3_bucket_name
8383
type: string

api/core/tools/provider/builtin/cogview/cogview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ credentials_for_provider:
2929
en_US: Please input your ZhipuAI API key
3030
zh_Hans: 请输入你的 ZhipuAI API key
3131
pt_BR: Please input your ZhipuAI API key
32-
zhipuai_organizaion_id:
32+
zhipuai_organization_id:
3333
type: text-input
3434
required: false
3535
label:

api/core/tools/provider/builtin/dalle/tools/dalle3.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ parameters:
4444
options:
4545
- value: square
4646
label:
47-
en_US: Squre(1024x1024)
47+
en_US: Square(1024x1024)
4848
zh_Hans: 方(1024x1024)
49-
pt_BR: Squre(1024x1024)
49+
pt_BR: Square(1024x1024)
5050
- value: vertical
5151
label:
5252
en_US: Vertical(1024x1792)

api/core/tools/provider/builtin/novitaai/tools/novitaai_createtile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ parameters:
2828
en_US: negative prompt
2929
zh_Hans: 负向提示
3030
human_description:
31-
en_US: Negtive prompt word of the created tile, divided by `,`, Range [1, 512]. Only English input is allowed.
31+
en_US: Negative prompt word of the created tile, divided by `,`, Range [1, 512]. Only English input is allowed.
3232
zh_Hans: 生成平铺图案的负向提示,用 `,` 分隔,范围 [1, 512]。仅允许输入英文。
3333
llm_description: Image negative prompt of Novita AI, divided by `,`, Range [1, 512]. Only English input is allowed.
3434
form: llm

api/core/tools/provider/builtin/novitaai/tools/novitaai_modelquery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parameters:
1717
en_US: query
1818
zh_Hans: 查询
1919
human_description:
20-
en_US: Seaching the content of sd_name, name, tags.
20+
en_US: Searching the content of sd_name, name, tags.
2121
zh_Hans: 搜索 sd_name、name、tags 中的内容
2222
llm_description: Enter the content to search
2323
form: llm

api/core/tools/provider/builtin/novitaai/tools/novitaai_txt2img.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ parameters:
127127
en_US: guidance scale
128128
zh_Hans: 提示词遵守程度
129129
human_description:
130-
en_US: This setting says how close the Stable Diffusion will listen to your prompt, higer guidance forces the model to better follow the prompt, but result in lower quality output.Range [1, 30].
130+
en_US: This setting says how close the Stable Diffusion will listen to your prompt, higher guidance forces the model to better follow the prompt, but result in lower quality output.Range [1, 30].
131131
zh_Hans: 此设置表明 Stable Diffusion 如何听从您的提示,较高的 guidance_scale 会强制模型更好跟随提示,但结果会更低质量输出。范围 [1.0, 30.0]。
132132
form: form
133133
- name: sampler_name
@@ -238,7 +238,7 @@ parameters:
238238
en_US: loRAs
239239
zh_Hans: loRAs
240240
human_description:
241-
en_US: LoRA models. Currenlty supports up to 5 LoRAs. You can use the "Novita AI Model Query" tool to query the corresponding "sd_name" value (type select "LoRA"). Input template is "<sd_name>,<strength [0-1.0]>;<sd_name>,<strength [0-1.0]>;...". Such as"Film Grain style_331903,0.5;DoggystylePOV_9600,0.5"
241+
en_US: LoRA models. Currently supports up to 5 LoRAs. You can use the "Novita AI Model Query" tool to query the corresponding "sd_name" value (type select "LoRA"). Input template is "<sd_name>,<strength [0-1.0]>;<sd_name>,<strength [0-1.0]>;...". Such as"Film Grain style_331903,0.5;DoggystylePOV_9600,0.5"
242242
zh_Hans: LoRA 模型。目前仅支持 5 个 LoRA。可通过“Novita AI 模型请求”工具查询对应的“sd_name”值(类型选择“LoRA”)。输入模板:“<sd_name>,<strength [0-1.0]>;<sd_name>,<strength [0-1.0]>;...”,例如:“Film Grain style_331903,0.5;DoggystylePOV_9600,0.5”
243243
form: form
244244
- name: embeddings
@@ -248,7 +248,7 @@ parameters:
248248
en_US: text embeddings
249249
zh_Hans: 文本嵌入
250250
human_description:
251-
en_US: Textual Inversion is a training method for personalizing models by learning new text embeddings from a few example images, currenlty supports up to 5 embeddings. You can use the "Novita AI Model Query" tool to query the corresponding "sd_name" value (type select "Text Inversion"). Input template is "<sd_name>;<sd_name>;...". Such as "EasyNegativeV2_75525;AS-YoungerV2"
251+
en_US: Textual Inversion is a training method for personalizing models by learning new text embeddings from a few example images, currently supports up to 5 embeddings. You can use the "Novita AI Model Query" tool to query the corresponding "sd_name" value (type select "Text Inversion"). Input template is "<sd_name>;<sd_name>;...". Such as "EasyNegativeV2_75525;AS-YoungerV2"
252252
zh_Hans: 文本反转是一种通过从一些示例图像中学习新的文本嵌入来个性化模型的训练方法,目前仅支持 5 个嵌入。可通过“Novita AI 模型请求”工具查询对应的“sd_name”值(类型选择“Text Inversion”)。输入模板:“<sd_name>;<sd_name>;...”,例如:“EasyNegativeV2_75525;AS-YoungerV2”
253253
form: form
254254
- name: hires_fix

api/core/tools/provider/builtin/searxng/docker/settings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ search:
3333
# "seznam", "startpage", "stract", "swisscows", "qwant", "wikipedia" - leave blank to turn it off
3434
# by default.
3535
autocomplete: ""
36-
# minimun characters to type before autocompleter starts
36+
# minimum characters to type before autocompleter starts
3737
autocomplete_min: 4
3838
# Default search language - leave blank to detect from browser information or
3939
# use codes from 'languages.py'
@@ -1026,7 +1026,7 @@ engines:
10261026

10271027
- name: invidious
10281028
engine: invidious
1029-
# Instanes will be selected randomly, see https://api.invidious.io/ for
1029+
# Instances will be selected randomly, see https://api.invidious.io/ for
10301030
# instances that are stable (good uptime) and close to you.
10311031
base_url:
10321032
- https://invidious.io.lol

0 commit comments

Comments
 (0)