feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
0
backend/conf/model/entity/.gitkeep
Normal file
BIN
backend/conf/model/icon/claude_v2.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
backend/conf/model/icon/deepseek_v2.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
backend/conf/model/icon/doubao_v2.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
backend/conf/model/icon/gemini_v2.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
backend/conf/model/icon/ollama.png
Normal file
|
After Width: | Height: | Size: 226 KiB |
BIN
backend/conf/model/icon/openai_v2.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
backend/conf/model/icon/qwen_v2.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
0
backend/conf/model/meta/.gitkeep
Normal file
@@ -0,0 +1,94 @@
|
||||
id: 2002 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao Model
|
||||
description: test doubao description
|
||||
meta:
|
||||
id: 102
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **文本**: 使用普通文本格式回复\n- **Markdown**: 将引导模型使用Markdown格式输出回复\n- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **Text**: Replies in plain text format\n- **Markdown**: Uses Markdown format for replies\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'Markdown'
|
||||
-
|
||||
value: '2'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Lite
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Pro-256k
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Pro-32k
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Thinking-Pro
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Thinking-Vision-Pro
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Vision-Lite
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-1.5-Vision-Pro
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-Seed-1.6-Flash
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-Seed-1.6-Thinking
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Doubao-Seed-1.6
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Deepseek-R1-VolcEngine
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 65536 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Deepseek-V3-VolcEngine
|
||||
meta:
|
||||
id: 65536
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
label_en: ''
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,132 @@
|
||||
id: 100 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: test_model
|
||||
description: test_description
|
||||
meta:
|
||||
id: 0
|
||||
scenario: 1
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: frequency_penalty
|
||||
label:
|
||||
zh: 重复语句惩罚
|
||||
en: Frequency penalty
|
||||
desc:
|
||||
zh: '- **frequency penalty**: 当该值为正时,会阻止模型频繁使用相同的词汇和短语,从而增加输出内容的多样性。'
|
||||
en: '**Frequency Penalty**: When positive, it discourages the model from repeating the same words and phrases, thereby increasing the diversity of the output.'
|
||||
type: float
|
||||
min: '-2'
|
||||
max: '2'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: presence_penalty
|
||||
label:
|
||||
zh: 重复主题惩罚
|
||||
en: Presence penalty
|
||||
desc:
|
||||
zh: '- **presence penalty**: 当该值为正时,会阻止模型频繁讨论相同的主题,从而增加输出内容的多样性'
|
||||
en: '**Presence Penalty**: When positive, it prevents the model from discussing the same topics repeatedly, thereby increasing the diversity of the output.'
|
||||
type: float
|
||||
min: '-2'
|
||||
max: '2'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **文本**: 使用普通文本格式回复\n- **Markdown**: 将引导模型使用Markdown格式输出回复\n- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **Text**: Replies in plain text format\n- **Markdown**: Uses Markdown format for replies\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'Markdown'
|
||||
-
|
||||
value: '2'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,47 @@
|
||||
id: 2006 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Claude-3.5-Sonnet
|
||||
description: test claude description
|
||||
meta:
|
||||
id: 106
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,72 @@
|
||||
id: 2004 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: DeepSeek-V3
|
||||
description: test deepseek description
|
||||
meta:
|
||||
id: 104
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **文本**: 使用普通文本格式回复\n- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **Text**: Replies in plain text format\n- **Markdown**: Uses Markdown format for replies\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'JSON Object'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
id: 2007 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Gemini-2.5-Flash
|
||||
description: test gemini description
|
||||
meta:
|
||||
id: 107
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **文本**: 使用普通文本格式回复\n- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '2'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,47 @@
|
||||
id: 2003 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Gemma-3
|
||||
description: test gemma-3 description
|
||||
meta:
|
||||
id: 103
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,131 @@
|
||||
id: 2001 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: GPT-4o
|
||||
description: test gpt-4o description
|
||||
meta:
|
||||
id: 101
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.7'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: frequency_penalty
|
||||
label:
|
||||
zh: 重复语句惩罚
|
||||
en: Frequency penalty
|
||||
desc:
|
||||
zh: '- **frequency penalty**: 当该值为正时,会阻止模型频繁使用相同的词汇和短语,从而增加输出内容的多样性。'
|
||||
en: '**Frequency Penalty**: When positive, it discourages the model from repeating the same words and phrases, thereby increasing the diversity of the output.'
|
||||
type: float
|
||||
min: '-2'
|
||||
max: '2'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: presence_penalty
|
||||
label:
|
||||
zh: 重复主题惩罚
|
||||
en: Presence penalty
|
||||
desc:
|
||||
zh: '- **presence penalty**: 当该值为正时,会阻止模型频繁讨论相同的主题,从而增加输出内容的多样性'
|
||||
en: '**Presence Penalty**: When positive, it prevents the model from discussing the same topics repeatedly, thereby increasing the diversity of the output.'
|
||||
type: float
|
||||
min: '-2'
|
||||
max: '2'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: response_format
|
||||
label:
|
||||
zh: 输出格式
|
||||
en: Response format
|
||||
desc:
|
||||
zh: '- **文本**: 使用普通文本格式回复\n- **Markdown**: 将引导模型使用Markdown格式输出回复\n- **JSON**: 将引导模型使用JSON格式输出'
|
||||
en: '**Response Format**:\n\n- **Text**: Replies in plain text format\n- **Markdown**: Uses Markdown format for replies\n- **JSON**: Uses JSON format for replies'
|
||||
type: int
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '0'
|
||||
options:
|
||||
-
|
||||
value: '0'
|
||||
label: 'Text'
|
||||
-
|
||||
value: '1'
|
||||
label: 'Markdown'
|
||||
-
|
||||
value: '2'
|
||||
label: 'JSON'
|
||||
style:
|
||||
widget: radio_buttons
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
@@ -0,0 +1,66 @@
|
||||
id: 2005 # 模型 entity id, 同 id 数据不会覆盖
|
||||
name: Qwen3-32B
|
||||
description: test qwen description
|
||||
meta:
|
||||
id: 105
|
||||
default_parameters:
|
||||
-
|
||||
name: temperature
|
||||
label:
|
||||
zh: 生成随机性
|
||||
en: Temperature
|
||||
desc:
|
||||
zh: '- **temperature**: 调高温度会使得模型的输出更多样性和创新性,反之,降低温度会使输出内容更加遵循指令要求但减少多样性。建议不要与“Top p”同时调整。'
|
||||
en: '**Temperature**:\n\n- When you increase this value, the model outputs more diverse and innovative content; when you decrease it, the model outputs less diverse content that strictly follows the given instructions.\n- It is recommended not to adjust this value with \"Top p\" at the same time.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 1
|
||||
default_val:
|
||||
default_val: '1.0'
|
||||
creative: '1'
|
||||
balance: '0.8'
|
||||
precise: '0.3'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
-
|
||||
name: max_tokens
|
||||
label:
|
||||
zh: 最大回复长度
|
||||
en: Response max length
|
||||
desc:
|
||||
zh: '控制模型输出的Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。'
|
||||
en: 'You can specify the maximum length of the tokens output through this value. Typically, 100 tokens are approximately equal to 150 Chinese characters.'
|
||||
type: int
|
||||
min: '1'
|
||||
max: '4096'
|
||||
precision: 0
|
||||
default_val:
|
||||
default_val: '4096'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 输入及输出设置
|
||||
en: Input and output settings
|
||||
-
|
||||
name: top_p
|
||||
label:
|
||||
zh: Top P
|
||||
en: Top P
|
||||
desc:
|
||||
zh: '- **Top p 为累计概率**: 模型在生成输出时会从概率最高的词汇开始选择,直到这些词汇的总概率累积达到Top p 值。这样可以限制模型只选择这些高概率的词汇,从而控制输出内容的多样性。建议不要与“生成随机性”同时调整。'
|
||||
en: '**Top P**:\n\n- An alternative to sampling with temperature, where only tokens within the top p probability mass are considered. For example, 0.1 means only the top 10% probability mass tokens are considered.\n- We recommend altering this or temperature, but not both.'
|
||||
type: float
|
||||
min: '0'
|
||||
max: '1'
|
||||
precision: 2
|
||||
default_val:
|
||||
default_val: '0.95'
|
||||
style:
|
||||
widget: slider
|
||||
label:
|
||||
zh: 生成多样性
|
||||
en: Generation diversity
|
||||
@@ -0,0 +1,41 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 102 # 模型 id, 同 id 数据不会覆盖
|
||||
name: Doubao # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 豆包模型简介 # 模型默认描述
|
||||
en: doubao model description
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-lite # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'Doubao-1.5-lite,全新一代轻量版模型,极致响应速度,效果与时延均达到全球一流水平。' # 模型默认描述
|
||||
en: 'Doubao-1.5-lite, the new generation lightweight model, delivers ultra-fast response speed with both performance and latency reaching world-class standards.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 20000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 12000 # 输出 token 上限
|
||||
max_tokens: 32000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-pro-256k # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'doubao-1.5-pro-256k,基于doubao-1.5-Pro全面升级版,整体效果大幅提升10%。更高性能、更大窗口、超高性价比,适用于更广泛的应用场景。' # 模型默认描述
|
||||
en: 'doubao-1.5-pro-256k is a fully upgraded version based on doubao-1.5-Pro, with an overall performance improvement of 10%. It offers higher performance, a larger context window, and exceptional cost-effectiveness, making it suitable for a wider range of application scenarios.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 12000 # 输出 token 上限
|
||||
max_tokens: 256000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-pro-32k # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'Doubao-1.5-pro,全新一代主力模型,性能全面升级,在知识、代码、推理、等方面表现卓越。' # 模型默认描述
|
||||
en: 'Doubao-1.5-pro, the new generation flagship model, features comprehensive performance upgrades and excels in areas such as knowledge, coding, and reasoning.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 12000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,41 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-thinking-pro # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'doubao-1.5 全新深度思考模型,在数学、编程、科学推理等专业领域及创意写作等通用任务中表现突出,在 AIME 2024、Codeforces、GPQA 等多项权威基准上达到或接近业界第一梯队水平。' # 模型默认描述
|
||||
en: "doubao-1.5 is a brand-new deep thinking model that excels in specialized fields such as mathematics, programming, scientific reasoning, as well as general tasks like creative writing. It achieves or approaches the industry’s top-tier level on multiple authoritative benchmarks including AIME 2024, Codeforces, and GPQA."
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,42 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-thinking-vision-pro # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'doubao-1-5-thinking-vision-pro 全新视觉深度思考模型,具备更强的通用多模态理解和推理能力,在 59 个公开评测基准中的 37 个上取得 SOTA 表现。' # 模型默认描述
|
||||
en: 'doubao-1-5-thinking-vision-pro is a brand-new visual deep thinking model, featuring stronger general multimodal understanding and reasoning abilities, achieving SOTA performance on 37 out of 59 public evaluation benchmarks.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- video
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,41 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-vision-lite # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'doubao-1.5-vision-lite,极具性价比的多模态大模型,支持任意分辨率和极端长宽比图像识别,增强视觉推理、文档识别、细节信息理解和指令遵循能力。' # 模型默认描述
|
||||
en: 'doubao-1.5-vision-lite is a highly cost-effective multimodal large model that supports image recognition at any resolution and extreme aspect ratios, enhancing visual reasoning, document recognition, detailed information comprehension, and instruction-following capabilities.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: false # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,42 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-1.5-vision-pro # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: 'doubao-1.5-vision-pro,全新升级的多模态大模型,支持任意分辨率和极端长宽比图像识别,增强视觉推理、文档识别、细节信息理解和指令遵循能力。' # 模型默认描述
|
||||
en: 'doubao-1.5-vision-pro is a newly upgraded multimodal large model that supports image recognition at any resolution and extreme aspect ratios, enhancing visual reasoning, document recognition, detailed information comprehension, and instruction-following capabilities.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- video
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,42 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-seed-1.6-flash # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: '有极致推理速度的多模态深度思考模型;同时支持文本和视觉理解。文本理解能力超过上一代 Lite 系列模型,视觉理解比肩友商 Pro 系列模型。' # 模型默认描述
|
||||
en: 'A multimodal deep thinking model with extreme reasoning speed; it supports both text and visual understanding. Its text comprehension surpasses the previous generation Lite series models, while its visual understanding rivals competitor Pro series models.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- video
|
||||
input_tokens: 224000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 32000 # 输出 token 上限
|
||||
max_tokens: 256000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,42 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-seed-1.6-thinking # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: '在思考能力上进行了大幅强化, 对比 doubao 1.5 代深度理解模型,在编程、数学、逻辑推理等基础能力上进一步提升, 支持视觉理解。' # 模型默认描述
|
||||
en: 'Significantly enhanced in thinking capabilities, compared to the doubao 1.5 generation deep understanding model, with further improvements in fundamental skills such as programming, mathematics, and logical reasoning, and support for visual understanding.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- video
|
||||
input_tokens: 224000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 256000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,42 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: doubao-seed-1.6 # 模型 meta 名称
|
||||
icon_uri: doubao_v2.png
|
||||
description:
|
||||
zh: '全新多模态深度思考模型,同时支持 thinking、non-thinking、auto三种思考模式。其中 non-thinking 模型对比 doubao-1.5-pro-32k-250115 模型大幅提升。' # 模型默认描述
|
||||
en: 'A brand-new multimodal deep thinking model supports three thinking modes: thinking, non-thinking, and auto. Among them, the non-thinking model has significantly improved compared to the doubao-1.5-pro-32k-250115 model.'
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- video
|
||||
input_tokens: 224000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 32000 # 输出 token 上限
|
||||
max_tokens: 256000 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: deepseek-r1-ve # 模型 meta 名称
|
||||
icon_uri: deepseek_v2.png
|
||||
description:
|
||||
zh: 'deepseek-r1 是由深度求索推出的深度思考模型。在后训练阶段大规模使用了强化学习技术,在仅有极少标注数据的情况下,极大提升了模型推理能力。在数学、代码、自然语言推理等任务上,性能比肩 OpenAI o1 正式版。' # 模型默认描述
|
||||
en: "deepseek-r1 is a deep thinking model launched by Deep Seek. It extensively employs reinforcement learning during the post-training phase, significantly enhancing the model's reasoning ability with very limited annotated data. In tasks such as mathematics, coding, and natural language reasoning, its performance rivals that of the official OpenAI o1 version."
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 32000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
# ark model template
|
||||
# model list: https://www.volcengine.com/docs/82379/1330310
|
||||
# get api_key: https://www.volcengine.com/docs/82379/1399008#b00dee71
|
||||
# get region: https://www.volcengine.com/docs/82379/1319853#%E8%AE%BE%E7%BD%AE%E5%9C%B0%E5%9F%9F%E5%92%8C%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D
|
||||
# get ak/sk: https://www.volcengine.com/docs/82379/1319853#%E4%BD%BF%E7%94%A8access-key%E9%89%B4%E6%9D%83
|
||||
id: 65536 # 模型 id, 同 id 数据不会覆盖
|
||||
name: deepseek-v3-ve # 模型 meta 名称
|
||||
icon_uri: deepseek_v2.png
|
||||
description:
|
||||
zh: 'deepseek-v3 由深度求索公司自研的MoE模型,多项评测成绩超越了 qwen2.5-72b 和 llama-3.1-405b 等开源模型,并在性能上和世界顶尖的闭源模型 gpt-4o 及 claude-3.5-Sonnet 不分伯仲。' # 模型默认描述
|
||||
en: "deepseek-v3 is a MoE model independently developed by Deep Seek. Its performance in multiple evaluations surpasses open-source models such as qwen2.5-72b and llama-3.1-405b, and it competes on par with world-leading closed-source models like gpt-4o and claude-3.5-Sonnet."
|
||||
protocol: ark # 模型连接协议
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 96000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16000 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model name
|
||||
temperature: 0.1 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.7 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
ark: # OPTIONAL
|
||||
region: ''
|
||||
access_key: ''
|
||||
secret_key: ''
|
||||
status: 1
|
||||
@@ -0,0 +1,75 @@
|
||||
id: 0 # 模型 meta id, 同 id 数据不会覆盖
|
||||
name: test_model # 模型展示名称
|
||||
icon_uri: test_icon_uri # 模型展示图片 uri
|
||||
icon_url: test_icon_url # 模型展示图片 url
|
||||
description:
|
||||
zh: test_description # 模型默认描述
|
||||
en: test_description
|
||||
protocol: test_protocol # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- audio
|
||||
- video
|
||||
input_tokens: 1024 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
- image
|
||||
- audio
|
||||
- video
|
||||
output_tokens: 1024 # 输出 token 上限
|
||||
max_tokens: 2048 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: https://localhost:1234/chat/completion
|
||||
api_key: qweasdzxc
|
||||
timeout: 100 # nanosec
|
||||
model: model_name # 模型名称
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 2048 # 默认 max_tokens
|
||||
top_p: 0 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
enable_thinking: false
|
||||
stop:
|
||||
- bye
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
openai:
|
||||
by_azure: true
|
||||
api_version: 2024-10-21
|
||||
response_format:
|
||||
type: text
|
||||
claude:
|
||||
by_bedrock: true
|
||||
access_key: bedrock_ak
|
||||
secret_access_key: bedrock_secret_ak
|
||||
session_token: bedrock_session_token
|
||||
region: bedrock_region
|
||||
ark:
|
||||
region: region
|
||||
access_key: ak
|
||||
secret_key: sk
|
||||
retry_times: 123
|
||||
custom_header:
|
||||
key: val
|
||||
deepseek:
|
||||
response_format_type: text
|
||||
gemini:
|
||||
backend: 0
|
||||
project: ''
|
||||
location: ''
|
||||
api_version: ''
|
||||
headers:
|
||||
key_1:
|
||||
- val_1
|
||||
- val_2
|
||||
timeout: 0
|
||||
include_thoughts: true
|
||||
thinking_budget: null
|
||||
status: 1
|
||||
@@ -0,0 +1,40 @@
|
||||
id: 106 # 模型 id, 同 id 数据不会覆盖
|
||||
name: Claude-3.5-Sonnet # 模型 meta 名称
|
||||
icon_uri: claude_v2.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: claude 模型简介 # 模型默认描述
|
||||
en: claude model description
|
||||
protocol: claude # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 1 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
claude: # OPTIONAL
|
||||
by_bedrock: false # true if using bedrock service
|
||||
access_key: '' # access key
|
||||
secret_access_key: '' # secret access key
|
||||
session_token: '' # session_token
|
||||
region: '' # region
|
||||
status: 1
|
||||
@@ -0,0 +1,35 @@
|
||||
id: 104 # 模型 id, 同 id 数据不会覆盖
|
||||
name: DeepSeek-V3 # 模型 meta 名称
|
||||
icon_uri: deepseek_v2.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: deepseek 模型简介
|
||||
en: deepseek model description
|
||||
protocol: deepseek # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: false # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 1 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
deepseek: # OPTIONAL
|
||||
response_format_type: text # response format
|
||||
status: 1
|
||||
@@ -0,0 +1,48 @@
|
||||
id: 107 # 模型 id, 同 id 数据不会覆盖
|
||||
name: Gemini-2.5-Flash # 模型 meta 名称
|
||||
icon_uri: gemini_v2.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: gemini 模型简介 # 模型默认描述
|
||||
en: gemini model description
|
||||
protocol: gemini # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
- audio
|
||||
- video
|
||||
input_tokens: 1048576 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 65536 # 输出 token 上限
|
||||
max_tokens: 1114112 # 最大 token 数量
|
||||
json_mode: true # 是否支持 json mode
|
||||
prefix_caching: true # 是否支持 prefix caching
|
||||
reasoning: true # 是否支持 reasoning
|
||||
prefill_response: true # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: gemini-2.5-flash # REQUIRED: model
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 1 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
gemini:
|
||||
backend: 0
|
||||
project: ''
|
||||
location: ''
|
||||
api_version: ''
|
||||
headers:
|
||||
key_1:
|
||||
- val_1
|
||||
- val_2
|
||||
timeout: 0
|
||||
include_thoughts: true
|
||||
thinking_budget: null
|
||||
status: 1
|
||||
@@ -0,0 +1,31 @@
|
||||
id: 103 # 模型 id, 同 id 数据不会覆盖
|
||||
name: Gemma-3 # 模型 meta 名称
|
||||
icon_uri: ollama.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: ollama 模型简介
|
||||
en: ollama model description
|
||||
protocol: ollama # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
model: '' # REQUIRED: model
|
||||
temperature: 0.6 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 0.95 # 默认 top_p
|
||||
top_k: 20 # 默认 top_k
|
||||
status: 1
|
||||
@@ -0,0 +1,39 @@
|
||||
id: 101 # 模型 id, 同 id 数据不会覆盖
|
||||
name: GPT-4o # 模型 meta 名称
|
||||
icon_uri: openai_v2.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: gpt 模型简介
|
||||
en: Multi-modal, 320ms, 88.7% MMLU, excels in education, customer support, health, and entertainment. # 模型默认描述
|
||||
protocol: openai # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
- image
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 1 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
openai: # OPTIONAL
|
||||
by_azure: true # true if using azure openai
|
||||
api_version: '' # azure api version
|
||||
response_format: # response format
|
||||
type: text
|
||||
status: 1
|
||||
@@ -0,0 +1,36 @@
|
||||
id: 105 # 模型 id, 同 id 数据不会覆盖
|
||||
name: Qwen3-32B # 模型 meta 名称
|
||||
icon_uri: qwen_v2.png # 模型展示图片 uri
|
||||
icon_url: '' # 模型展示图片 url
|
||||
description:
|
||||
zh: 通义千问模型 # 模型默认描述
|
||||
en: qwen model description
|
||||
protocol: qwen # 模型连接协议, see: backend/infra/contract/chatmodel/protocol.go
|
||||
capability: # 模型基础能力
|
||||
function_call: true # 模型是否支持 function call
|
||||
input_modal: # 模型输入支持模态
|
||||
- text
|
||||
input_tokens: 128000 # 输入 token 上限
|
||||
output_modal: # 模型输出支持模态
|
||||
- text
|
||||
output_tokens: 16384 # 输出 token 上限
|
||||
max_tokens: 128000 # 最大 token 数量
|
||||
json_mode: false # 是否支持 json mode
|
||||
prefix_caching: false # 是否支持 prefix caching
|
||||
reasoning: false # 是否支持 reasoning
|
||||
prefill_response: false # 是否支持续写
|
||||
conn_config: # 模型连接参数
|
||||
base_url: '' # REQUIRED: base_url
|
||||
api_key: '' # REQUIRED: api_key
|
||||
model: '' # REQUIRED: model
|
||||
temperature: 0.7 # 默认 temperature
|
||||
frequency_penalty: 0 # 默认 frequency_penalty
|
||||
presence_penalty: 0 # 默认 presence_penalty
|
||||
max_tokens: 4096 # 默认 max_tokens
|
||||
top_p: 1 # 默认 top_p
|
||||
top_k: 0 # 默认 top_k
|
||||
# 下面是模型专用配置,仅配置 protocol 所对应的类型即可
|
||||
qwen: # OPTIONAL
|
||||
response_format: # response format
|
||||
type: text
|
||||
status: 1
|
||||
42
backend/conf/plugin/common/oauth_schema.json
Normal file
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"key": "Authorization Code",
|
||||
"value": 4,
|
||||
"label": "Authorization Code",
|
||||
"items": [
|
||||
{
|
||||
"key": "client_id",
|
||||
"type": "text",
|
||||
"max_len": 100,
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "client_secret",
|
||||
"type": "text",
|
||||
"max_len": 100,
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "client_url",
|
||||
"type": "url",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "scope",
|
||||
"type": "text",
|
||||
"max_len": 500
|
||||
},
|
||||
{
|
||||
"key": "authorization_url",
|
||||
"type": "url",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "authorization_content_type",
|
||||
"type": "text",
|
||||
"default": "application/json",
|
||||
"required": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
179
backend/conf/plugin/pluginproduct/bocha_search.yaml
Normal file
@@ -0,0 +1,179 @@
|
||||
info:
|
||||
description: 从全网搜索任何网页信息和网页链接,结果准确、摘要完整,更适合AI使用。
|
||||
title: 博查搜索
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/v1/web-search:
|
||||
post:
|
||||
operationId: web_search
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
count:
|
||||
default: 10
|
||||
description: 返回结果的条数(实际返回结果数量可能会小于count指定的数量)。 - 可填范围:1-50,最大单次搜索返回50条 - 默认为100
|
||||
type: integer
|
||||
freshness:
|
||||
default: noLimit
|
||||
description: 搜索指定时间范围内的网页。 可填值: - oneDay,一天内 - oneWeek,一周内 - oneMonth,一个月内 - oneYear,一年内 - noLimit,不限(默认) - YYYY-MM-DD..YYYY-MM-DD,搜索日期范围,例如:"2025-01-01..2025-04-06" - YYYY-MM-DD,搜索指定日期,例如:"2025-04-06" 推荐使用“noLimit”。搜索算法会自动进行时间范围的改写,效果更佳。
|
||||
type: string
|
||||
page:
|
||||
default: 1
|
||||
description: 页码,默认值为 1
|
||||
type: integer
|
||||
query:
|
||||
description: 用户的搜索词
|
||||
type: string
|
||||
summary:
|
||||
default: false
|
||||
description: 是否显示文本摘要。 可填值: - true,显示 - false,不显示(默认)
|
||||
type: boolean
|
||||
required:
|
||||
- query
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
_type:
|
||||
description: 搜索的类型
|
||||
type: string
|
||||
images:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
isFamilyFriendly:
|
||||
type: string
|
||||
readLink:
|
||||
type: string
|
||||
value:
|
||||
items:
|
||||
properties:
|
||||
contentSize:
|
||||
type: string
|
||||
contentUrl:
|
||||
type: string
|
||||
datePublished:
|
||||
type: string
|
||||
encodingFormat:
|
||||
type: string
|
||||
height:
|
||||
type: number
|
||||
hostPageDisplayUrl:
|
||||
type: string
|
||||
hostPageUrl:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
thumbnail:
|
||||
type: string
|
||||
thumbnailUrl:
|
||||
type: string
|
||||
webSearchUrl:
|
||||
type: string
|
||||
width:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
webSearchUrl:
|
||||
type: string
|
||||
type: object
|
||||
queryContext:
|
||||
properties:
|
||||
originalQuery:
|
||||
description: 原始的搜索关键字
|
||||
type: string
|
||||
type: object
|
||||
videos:
|
||||
type: string
|
||||
webPages:
|
||||
properties:
|
||||
someResultsRemoved:
|
||||
description: 结果中是否有被安全过滤
|
||||
type: boolean
|
||||
totalEstimatedMatches:
|
||||
description: 搜索匹配的网页总数
|
||||
type: number
|
||||
value:
|
||||
items:
|
||||
properties:
|
||||
cachedPageUrl:
|
||||
description: 网页的缓存页面URL
|
||||
type: string
|
||||
dateLastCrawled:
|
||||
description: 网页的发布时间(此处其实是发布时间,名字起为LastCrawled是兼容性适配)
|
||||
type: string
|
||||
datePublished:
|
||||
description: 网页的发布时间(例如:2025-02-23T08:18:30+08:00),UTC+8时间
|
||||
type: string
|
||||
displayUrl:
|
||||
description: 网页的展示URL(url decode后的格式)
|
||||
type: string
|
||||
id:
|
||||
description: 网页的排序ID
|
||||
type: string
|
||||
isFamilyFriendly:
|
||||
description: 是否为家庭友好的页面
|
||||
type: boolean
|
||||
isNavigational:
|
||||
description: 是否为导航性页面
|
||||
type: boolean
|
||||
language:
|
||||
description: 网页的语言
|
||||
type: string
|
||||
name:
|
||||
description: 网页的标题
|
||||
type: string
|
||||
siteIcon:
|
||||
description: 网页的网站图标
|
||||
type: string
|
||||
siteName:
|
||||
description: 网页的网站名称
|
||||
type: string
|
||||
snippet:
|
||||
description: 网页内容的简短描述
|
||||
type: string
|
||||
summary:
|
||||
description: 网页内容的文本摘要,当请求参数中 summary 为 true 时显示此属性
|
||||
type: string
|
||||
url:
|
||||
description: 网页的URL
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
webSearchUrl:
|
||||
description: 网页搜搜的地址
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 日志 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: |-
|
||||
从全网搜索任何网页信息和网页链接,结果准确、摘要完整,更适合AI使用。
|
||||
|
||||
搜索结果:
|
||||
包括网页、图片、视频,Response格式兼容Bing Search API。
|
||||
- 网页包括name、url、snippet、summary、siteName、siteIcon等信息
|
||||
[图片]
|
||||
- 图片包括 contentUrl、hostPageUrl、width、height等信息
|
||||
servers:
|
||||
- url: https://api.bochaai.com
|
||||
50
backend/conf/plugin/pluginproduct/chestnut_sign.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
info:
|
||||
description: 任务拆解
|
||||
title: 板栗看板
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/generate_tasks:
|
||||
post:
|
||||
operationId: generateTasks
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
input:
|
||||
description: 用户的完整输入内容,只支持中文
|
||||
type: string
|
||||
required:
|
||||
- input
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
type: number
|
||||
data:
|
||||
properties:
|
||||
edit_text:
|
||||
type: string
|
||||
edit_url:
|
||||
type: string
|
||||
img_url:
|
||||
type: string
|
||||
view_text:
|
||||
type: string
|
||||
type: object
|
||||
type_for_model:
|
||||
type: number
|
||||
x-global-disable: true
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 根据用户提问拆解任务,生成任务看板
|
||||
servers:
|
||||
- url: https://banlikanban.com/ai/coze
|
||||
754
backend/conf/plugin/pluginproduct/gaode_map.yaml
Normal file
@@ -0,0 +1,754 @@
|
||||
info:
|
||||
description: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
|
||||
title: 高德地图
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/v3/geocode/geo:
|
||||
get:
|
||||
operationId: geocodeGeo
|
||||
parameters:
|
||||
- description: 经纬度,经度在前,维度在后,用英文逗号分隔;例如 123,121
|
||||
in: query
|
||||
name: address
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 指定查询的城市
|
||||
in: query
|
||||
name: city
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: "成功返回"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
description: "返回结果状态值, 返回值为 0 或 1,0 表示请求失败;1 表示请求成功。"
|
||||
count:
|
||||
type: string
|
||||
description: "返回结果数目, 返回结果的个数。"
|
||||
info:
|
||||
type: string
|
||||
description: "返回状态说明, 当 status 为 0 时,info 会返回具体错误原因,否则返回“OK”。详情可以参阅 info 状态表"
|
||||
geocodes:
|
||||
type: array
|
||||
description: "地理编码信息列表, 结果对象列表"
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
country:
|
||||
type: string
|
||||
description: "国家, 国内地址默认返回中国"
|
||||
province:
|
||||
type: string
|
||||
description: "地址所在的省份名, 例如:北京市。此处需要注意的是,中国的四大直辖市也算作省级单位。"
|
||||
city:
|
||||
type: string
|
||||
description: "地址所在的城市名, 例如:北京市"
|
||||
citycode:
|
||||
type: string
|
||||
description: "城市编码, 例如:010"
|
||||
district:
|
||||
type: string
|
||||
description: "地址所在的区, 例如:朝阳区"
|
||||
street:
|
||||
type: string
|
||||
description: "街道, 例如:阜通东大街"
|
||||
number:
|
||||
type: string
|
||||
description: "门牌, 例如:6号"
|
||||
adcode:
|
||||
type: string
|
||||
description: "区域编码, 例如:110101"
|
||||
location:
|
||||
type: string
|
||||
description: "坐标点, 经度,纬度"
|
||||
level:
|
||||
type: string
|
||||
description: "匹配级别, 参见下方的地理编码匹配级别列表"
|
||||
type: object
|
||||
default:
|
||||
description: ""
|
||||
summary: 地理编码:将详细的结构化地址转换为高德经纬度坐标
|
||||
/v3/ip:
|
||||
get:
|
||||
operationId: ip
|
||||
parameters:
|
||||
- description: 需要搜索的 IP 地址(仅支持国内),若用户不填写 IP,则取客户 http 之中的请求来进行定位
|
||||
in: query
|
||||
name: ip
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
- description: 选择数字签名认证的付费用户必填
|
||||
in: query
|
||||
name: sig
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: "成功返回"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
description: "返回结果状态值, 值为0或1,0表示失败;1表示成功"
|
||||
info:
|
||||
type: string
|
||||
description: "返回状态说明, 返回状态说明,status 为0时,info 返回错误原因,否则返回“OK”。"
|
||||
infocode:
|
||||
type: string
|
||||
description: "状态码, 返回状态说明,10000代表正确,详情参阅 info 状态表"
|
||||
province:
|
||||
type: string
|
||||
description: "省份名称, 若为直辖市则显示直辖市名称; 如果在局域网 IP 网段内,则返回“局域网”; 非法 IP 以及国外 IP 则返回空"
|
||||
city:
|
||||
type: string
|
||||
description: "城市名称, 若为直辖市则显示直辖市名称; 如果为局域网网段内 IP 或者非法 IP 或国外 IP,则返回空"
|
||||
adcode:
|
||||
type: string
|
||||
description: "城市的 adcode 编码, adcode 信息可参考 城市编码表 获取"
|
||||
rectangle:
|
||||
type: string
|
||||
description: "所在城市矩形区域范围, 所在城市范围的左下右上对标对"
|
||||
type: object
|
||||
default:
|
||||
description: ""
|
||||
summary: IP定位
|
||||
/v3/geocode/regeo:
|
||||
get:
|
||||
operationId: geocodeRegeo
|
||||
parameters:
|
||||
- name: location
|
||||
in: query
|
||||
required: true
|
||||
description: 传入内容规则:经度在前,纬度在后,经纬度间以“,”分割,经纬度小数点后不要超过 6 位。
|
||||
schema:
|
||||
type: string
|
||||
- name: radius
|
||||
in: query
|
||||
required: false
|
||||
description: 搜索半径, radius 取值范围:0~3000,默认值:1000。单位:米
|
||||
schema:
|
||||
type: string
|
||||
default: "1000"
|
||||
- name: extensions
|
||||
in: query
|
||||
required: false
|
||||
description: "返回结果控制, extensions 参数默认取值是 base,也就是返回基本地址信息; extensions 参数取值为 all 时会返回基本地址信息、附近 POI 内容、道路信息以及道路交叉口信息。"
|
||||
schema:
|
||||
type: string
|
||||
default: "base"
|
||||
- name: roadlevel
|
||||
in: query
|
||||
required: false
|
||||
description: "道路等级, 以下内容需要 extensions 参数为 all 时才生效。可选值:0,1 当 roadlevel=0时,显示所有道路 ; 当 roadlevel=1时,过滤非主干道路,仅输出主干道路数据"
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
type: number
|
||||
regeocode:
|
||||
properties:
|
||||
addressComponent:
|
||||
properties:
|
||||
businessAreas:
|
||||
items:
|
||||
properties:
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
country:
|
||||
type: string
|
||||
district:
|
||||
type: string
|
||||
province:
|
||||
type: string
|
||||
streetNumber:
|
||||
properties:
|
||||
direction:
|
||||
type: string
|
||||
distance:
|
||||
type: string
|
||||
location:
|
||||
type: string
|
||||
number:
|
||||
type: string
|
||||
street:
|
||||
type: string
|
||||
type: object
|
||||
township:
|
||||
type: string
|
||||
type: object
|
||||
formatted_address:
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 逆地理编码,将经纬度转换为详细结构化的地址,且返回附近周边的POI、AOI信息
|
||||
/v5/direction/bicycling:
|
||||
get:
|
||||
operationId: directionBicycling
|
||||
summary: 骑行路径规划
|
||||
parameters:
|
||||
- name: origin
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
route:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
paths:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
duration:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
duration:
|
||||
type: string
|
||||
index:
|
||||
type: integer
|
||||
instruction:
|
||||
type: string
|
||||
road_name:
|
||||
type: string
|
||||
step_distance:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
/v5/direction/driving:
|
||||
get:
|
||||
operationId: directionDriving
|
||||
summary: 驾车路线规划
|
||||
parameters:
|
||||
- name: origin
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
route:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
taxi_cost:
|
||||
type: string
|
||||
paths:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
restriction:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
road_name:
|
||||
type: integer
|
||||
instruction:
|
||||
type: string
|
||||
orientation:
|
||||
type: string
|
||||
step_distance:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
/v5/direction/electrobike:
|
||||
get:
|
||||
operationId: directionElectrobike
|
||||
summary: 电动车(骑行)路线规划
|
||||
parameters:
|
||||
- name: origin
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
route:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
taxi_cost:
|
||||
type: string
|
||||
paths:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
road_name:
|
||||
type: integer
|
||||
instruction:
|
||||
type: string
|
||||
orientation:
|
||||
type: string
|
||||
step_distance:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
/v5/direction/transit/integrated:
|
||||
get:
|
||||
operationId: directionTransit
|
||||
summary: 公交路线规划
|
||||
parameters:
|
||||
- name: origin
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: city1
|
||||
in: query
|
||||
required: true
|
||||
description: 起点所在城市,仅支持 citycode
|
||||
schema:
|
||||
type: string
|
||||
- name: city2
|
||||
in: query
|
||||
required: true
|
||||
description: 目的地所在城市, 仅支持 citycode
|
||||
schema:
|
||||
type: string
|
||||
- name: strategy
|
||||
in: query
|
||||
required: false
|
||||
description: 公共交通换乘策略 0:推荐模式,综合权重,同高德APP默认 1:最经济模式,票价最低 2:最少换乘模式,换乘次数少 3:最少步行模式,尽可能减少步行距离 4:最舒适模式,尽可能乘坐空调车5:不乘地铁模式,不乘坐地铁路线6:地铁图模式,起终点都是地铁站(地铁图模式下 originpoi 及 destinationpoi 为必填项)7:地铁优先模式,步行距离不超过4KM8:时间短模式,方案花费总时间最少
|
||||
schema:
|
||||
type: number
|
||||
- name: date
|
||||
in: query
|
||||
required: false
|
||||
description: 请求日期
|
||||
schema:
|
||||
type: string
|
||||
- name: time
|
||||
in: query
|
||||
required: false
|
||||
description: 请求时间
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
route:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
distance:
|
||||
type: string
|
||||
transits:
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
nightflag:
|
||||
type: string
|
||||
paths:
|
||||
items:
|
||||
properties:
|
||||
bus:
|
||||
properties:
|
||||
buslines:
|
||||
items:
|
||||
properties:
|
||||
arrival_stop:
|
||||
properties:
|
||||
exit:
|
||||
properties:
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
id:
|
||||
type: string
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
departure_stop:
|
||||
properties:
|
||||
entrance:
|
||||
properties:
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
id:
|
||||
type: string
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
distance:
|
||||
type: string
|
||||
duration:
|
||||
type: string
|
||||
end_time:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
start_time:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
via_num:
|
||||
type: string
|
||||
via_stops:
|
||||
items:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
location:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
taxi:
|
||||
properties:
|
||||
price:
|
||||
type: string
|
||||
drivetime:
|
||||
type: string
|
||||
distance:
|
||||
type: string
|
||||
polyline:
|
||||
type: string
|
||||
startpoint:
|
||||
type: string
|
||||
startname:
|
||||
type: string
|
||||
endpoint:
|
||||
type: string
|
||||
endname:
|
||||
type: string
|
||||
type: object
|
||||
railway:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
distance:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
instruction:
|
||||
type: string
|
||||
road:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
walking:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
distance:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
instruction:
|
||||
type: string
|
||||
road:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
type: array
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
/v5/direction/walking:
|
||||
get:
|
||||
operationId: directionWalking
|
||||
summary: 步行路线规划
|
||||
parameters:
|
||||
- name: origin
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
route:
|
||||
properties:
|
||||
destination:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
paths:
|
||||
items:
|
||||
properties:
|
||||
distance:
|
||||
type: string
|
||||
steps:
|
||||
items:
|
||||
properties:
|
||||
orientation:
|
||||
type: string
|
||||
instruction:
|
||||
type: string
|
||||
road_name:
|
||||
type: string
|
||||
step_distance:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
/v5/place/around:
|
||||
get:
|
||||
operationId: placeAround
|
||||
summary: 周边搜索
|
||||
parameters:
|
||||
- name: radius
|
||||
in: query
|
||||
required: false
|
||||
description: 搜索半径,取值范围:0-50000,大于50000时按默认值,单位:米
|
||||
schema:
|
||||
type: string
|
||||
- name: location
|
||||
in: query
|
||||
required: true
|
||||
description: 经度在前,纬度在后,经度和纬度用","分割,经纬度小数点后不得超过6位。
|
||||
schema:
|
||||
type: string
|
||||
- name: types
|
||||
in: query
|
||||
required: false
|
||||
description: 指定地点类型,地点文本搜索接口支持按照设定的POI类型限定地点搜索结果;地点类型与 poi typecode 是同类内容,可以传入多个poi typecode,相互之间用“|”分隔,内容可以参考 POI 分类码表;地点(POI)列表的排序会按照高德搜索能力进行综合权重排序
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
status:
|
||||
type: number
|
||||
info:
|
||||
type: string
|
||||
infocode:
|
||||
type: string
|
||||
count:
|
||||
type: number
|
||||
pois:
|
||||
items:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
location:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
typecode:
|
||||
type: string
|
||||
pname:
|
||||
type: string
|
||||
cityname:
|
||||
type: string
|
||||
adname:
|
||||
type: string
|
||||
address:
|
||||
type: string
|
||||
pcode:
|
||||
type: string
|
||||
adcode:
|
||||
type: string
|
||||
citycode:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
servers:
|
||||
- url: https://restapi.amap.com
|
||||
58
backend/conf/plugin/pluginproduct/image_compression.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
info:
|
||||
description: 上传图片链接,返回压缩后的base64
|
||||
title: 图片压缩
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/img2base64/img2base64:
|
||||
post:
|
||||
operationId: img2base64
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
output_height:
|
||||
description: 压缩后图片高度
|
||||
type: integer
|
||||
output_width:
|
||||
description: 压缩后图片宽度
|
||||
type: integer
|
||||
quality:
|
||||
description: 压缩质量。范围1-100,数字越大,压缩后图片质量越高
|
||||
type: integer
|
||||
url:
|
||||
description: 图片链接
|
||||
format: image_url
|
||||
type: string
|
||||
x-assist-type: image
|
||||
required:
|
||||
- quality
|
||||
- url
|
||||
- output_height
|
||||
- output_width
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
compressed_size:
|
||||
description: 压缩后文件大小
|
||||
type: string
|
||||
content:
|
||||
description: base64图片
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
original_size:
|
||||
description: 压缩前文件大小
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 压缩图片后返回base64
|
||||
servers:
|
||||
- url: https://7458701539994107904.cozefn.cn
|
||||
@@ -0,0 +1,56 @@
|
||||
info:
|
||||
description: 飞书认证及授权
|
||||
title: 飞书认证及授权
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/access_token/get_tenant_access_token:
|
||||
post:
|
||||
operationId: get_tenant_access_token
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
app_id:
|
||||
description: 应用唯一标识,创建应用后获得。
|
||||
type: string
|
||||
app_secret:
|
||||
description: 应用秘钥,创建应用后获得。
|
||||
type: string
|
||||
required:
|
||||
- app_id
|
||||
- app_secret
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 取值表示失败
|
||||
type: number
|
||||
expire:
|
||||
description: tenant_access_token 的过期时间,单位为秒
|
||||
type: number
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
tenant_access_token:
|
||||
description: 租户访问凭证
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: |-
|
||||
自建应用通过此接口获取 tenant_access_token。
|
||||
|
||||
说明: tenant_access_token 的最大有效期是 2 小时。如果在有效期小于 30 分钟的情况下,调用本接口,会返回一个新的 tenant_access_token,这会同时存在两个有效的 tenant_access_token。
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
1172
backend/conf/plugin/pluginproduct/lark_base.yaml
Normal file
479
backend/conf/plugin/pluginproduct/lark_calendar.yaml
Normal file
@@ -0,0 +1,479 @@
|
||||
info:
|
||||
description: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
|
||||
title: 飞书日历
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/calendar/create_event:
|
||||
post:
|
||||
operationId: create_event
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
auto_record:
|
||||
description: 是否开启自动录制,true:开启,会议开始后自动录制;false:不开启
|
||||
type: boolean
|
||||
description:
|
||||
description: 日程描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 日程结束时间,格式:2006-01-02 15:04:05
|
||||
type: string
|
||||
need_notification:
|
||||
description: 更新日程时是否发送bot消息,true:发送,false:不发送
|
||||
type: boolean
|
||||
start_time:
|
||||
description: 日程开始时间,格式:2006-01-02 15:04:05
|
||||
type: string
|
||||
summary:
|
||||
description: 日程标题,若不填则日程标题显示 (无主题)
|
||||
type: string
|
||||
required:
|
||||
- start_time
|
||||
- end_time
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示错误
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
appLink:
|
||||
description: 日程的 app_link,跳转到具体的某个日程
|
||||
type: string
|
||||
create_time:
|
||||
description: 日程创建时间,格式:yyyy-MM-dd HH:mm:ss,如 2024-07-23 14:55:33
|
||||
type: string
|
||||
description:
|
||||
description: 日程描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 日程结束时间,格式:yyyy-MM-dd HH:mm:ss,如 2024-07-22 17:05:00
|
||||
type: string
|
||||
event_id:
|
||||
description: 日程 ID
|
||||
type: string
|
||||
event_organizer:
|
||||
description: 日程组织者信息
|
||||
properties:
|
||||
display_name:
|
||||
description: 日程组织者姓名
|
||||
type: string
|
||||
user_id:
|
||||
description: 日程组织者 ID
|
||||
type: string
|
||||
type: object
|
||||
organizer_calendar_id:
|
||||
description: 日程组织者日历 ID
|
||||
type: string
|
||||
recurrence:
|
||||
description: 重复日程的重复性规则
|
||||
type: string
|
||||
start_time:
|
||||
description: 日程开始时间,格式:yyyy-MM-dd HH:mm:ss,如 2024-07-22 16:05:00
|
||||
type: string
|
||||
status:
|
||||
description: 日程状态
|
||||
type: string
|
||||
summary:
|
||||
description: 日程标题
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 日志id
|
||||
type: string
|
||||
msg:
|
||||
description: 返回信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 创建日程
|
||||
/calendar/delete_event/{event_id}:
|
||||
delete:
|
||||
operationId: delete_event
|
||||
parameters:
|
||||
- description: 日程 ID,例如:e8b9791c-39ae-4908-8ad8-66b13159b9fb_0
|
||||
in: path
|
||||
name: event_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 删除日程是否给日程参与人发送Bot通知
|
||||
in: query
|
||||
name: need_notification
|
||||
schema:
|
||||
default: "true"
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 删除日程
|
||||
/calendar/get_primary_calendar:
|
||||
get:
|
||||
operationId: get_primary_calendar
|
||||
parameters:
|
||||
- description: 用户 ID 类型
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
calendars:
|
||||
description: 主日历列表
|
||||
items:
|
||||
description: 日历实体信息
|
||||
properties:
|
||||
calendar:
|
||||
description: 日历实体信息
|
||||
properties:
|
||||
calendar_id:
|
||||
description: 日历 ID
|
||||
type: string
|
||||
color:
|
||||
description: 日历颜色,由颜色 RGB 值的 int32 表示
|
||||
type: integer
|
||||
description:
|
||||
description: 日历描述
|
||||
type: string
|
||||
is_deleted:
|
||||
description: 对于当前身份,日历是否已经被标记为删除
|
||||
type: boolean
|
||||
is_third_party:
|
||||
description: 当前日历是否是第三方数据
|
||||
type: boolean
|
||||
permissions:
|
||||
description: 日历公开范围,private:私密,show_only_free_busy:仅展示忙闲信息,public:公开,他人可查看日程详情
|
||||
type: string
|
||||
role:
|
||||
description: 当前身份对于该日历的访问权限
|
||||
type: string
|
||||
summary:
|
||||
description: 日历标题
|
||||
type: string
|
||||
summary_alias:
|
||||
description: 日历备注名
|
||||
type: string
|
||||
type:
|
||||
description: 日历类型
|
||||
type: string
|
||||
type: object
|
||||
user_id:
|
||||
description: 日历创建者的 User ID
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 查询主日历信息
|
||||
/calendar/list_events:
|
||||
get:
|
||||
operationId: list_events
|
||||
parameters:
|
||||
- description: 一次请求要求返回的最大日程数量,范围50-1000
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: "50"
|
||||
type: string
|
||||
- description: 分页标记
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
- description: 开始时间,不传值时默认当天0点时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
|
||||
in: query
|
||||
name: start_time
|
||||
schema:
|
||||
type: string
|
||||
- description: 结束时间,不传值时默认当天23:59分时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
|
||||
in: query
|
||||
name: end_time
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有更多项
|
||||
type: boolean
|
||||
items:
|
||||
description: 日程列表,结果为空时返回空数组
|
||||
items:
|
||||
description: 日程信息
|
||||
properties:
|
||||
app_link:
|
||||
description: 日程的 app_link,跳转到具体的某个日程
|
||||
type: string
|
||||
create_time:
|
||||
description: 日程创建时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
|
||||
type: string
|
||||
description:
|
||||
description: 日程描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 结束时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 17:04:05
|
||||
type: string
|
||||
event_id:
|
||||
description: 日程 ID
|
||||
type: string
|
||||
event_organizer:
|
||||
description: 日程组织者信息
|
||||
properties:
|
||||
display_name:
|
||||
description: 日程组织者姓名
|
||||
type: string
|
||||
user_id:
|
||||
description: 日程组织者 user ID
|
||||
type: string
|
||||
type: object
|
||||
organizer_calendar_id:
|
||||
description: 日程组织者的日历 ID
|
||||
type: string
|
||||
recurrence:
|
||||
description: 重复日程的重复性规则
|
||||
type: string
|
||||
start_time:
|
||||
description: 开始时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
|
||||
type: string
|
||||
status:
|
||||
description: 日程状态
|
||||
type: string
|
||||
summary:
|
||||
description: 日程标题
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取日程列表
|
||||
/calendar/search_events:
|
||||
post:
|
||||
operationId: search_events
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
end_time:
|
||||
description: 日程搜索区间的结束时间,不传默认取当天23:59分时间,格式:2024-08-12 23:00:00
|
||||
type: string
|
||||
page_size:
|
||||
default: 20
|
||||
description: 一次调用所返回的最大日程数量,最大值100
|
||||
type: integer
|
||||
page_token:
|
||||
description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
|
||||
type: string
|
||||
query:
|
||||
description: 搜索关键字,用于模糊查询日程名称,最大输入200字符数,必填,不允许空串
|
||||
type: string
|
||||
start_time:
|
||||
description: 日程搜索区间的开始时间,不传默认取当天0点时间,格式:2024-08-01 10:00:00
|
||||
type: string
|
||||
user_id_type:
|
||||
default: open_id
|
||||
description: 用户 ID 类型,枚举值:open_id、union_id、user_id
|
||||
type: string
|
||||
required:
|
||||
- query
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,0表示成功,其他值表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
items:
|
||||
description: 日程列表
|
||||
items:
|
||||
description: 日程信息
|
||||
properties:
|
||||
app_link:
|
||||
description: 日程的 app_link,跳转到具体的某个日程
|
||||
type: string
|
||||
description:
|
||||
description: 日程描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 日程结束时间,格式:2024-08-18 01:00:00
|
||||
type: string
|
||||
event_id:
|
||||
description: 日程 ID,如:46b9231b-244e-4d3c-845e-0a4d25469b5b_0
|
||||
type: string
|
||||
organizer_calendar_id:
|
||||
description: 日程组织者的日历 ID
|
||||
type: string
|
||||
recurrence:
|
||||
description: 重复日程的重复性规则
|
||||
type: string
|
||||
start_time:
|
||||
description: 日程开始时间,格式:2024-08-18 00:30:00
|
||||
type: string
|
||||
status:
|
||||
description: 日程状态,可选值有 tentative :未回应;confirmed:已确认;
|
||||
type: string
|
||||
summary:
|
||||
description: 日程标题
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页token
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 日志 ID
|
||||
type: string
|
||||
msg:
|
||||
description: 错误信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 搜索日程
|
||||
/calendar/update_event/{event_id}:
|
||||
patch:
|
||||
operationId: update_event
|
||||
parameters:
|
||||
- description: 日程 ID,例如:e8b9791c-39ae-4908-8ad8-66b13159b9fb_0
|
||||
in: path
|
||||
name: event_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
auto_record:
|
||||
description: 开启自动录制,true:录制,false:不录制,不传则不更新此字段
|
||||
type: boolean
|
||||
description:
|
||||
description: 日程描述,空表示不更新该字段
|
||||
type: string
|
||||
end_time:
|
||||
description: 日程结束时间,格式:2024-07-22 22:30:00,不传该字段则不更新
|
||||
type: string
|
||||
need_notification:
|
||||
description: 更新日程时是否发送bot消息,不传则不更新
|
||||
type: boolean
|
||||
start_time:
|
||||
description: 日程开始时间,格式:2024-07-22 22:30:00,不传该字段则不更新
|
||||
type: string
|
||||
summary:
|
||||
description: 日程标题,空表示不更新该字段
|
||||
type: string
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: number
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 更新日程
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
552
backend/conf/plugin/pluginproduct/lark_docx.yaml
Normal file
@@ -0,0 +1,552 @@
|
||||
info:
|
||||
description: |-
|
||||
飞书云文档,支持以下操作:
|
||||
|
||||
1. 创建文档;
|
||||
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
|
||||
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
|
||||
4. 获取文档的所有块;
|
||||
5. 获取文档的基本信息;
|
||||
6. 搜索文档类型的文档;
|
||||
7. 搜索 PPT 类型的文档;
|
||||
title: 飞书云文档
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/document/create_document:
|
||||
post:
|
||||
operationId: create_document
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
content:
|
||||
description: 文档内容,支持 markdown 语法,可以为空。
|
||||
type: string
|
||||
folder_token:
|
||||
description: 指定文档所在文件夹 的 Token,不传或传空表示根目录。支持输入文件夹 token 或者 文件夹 URL。
|
||||
type: string
|
||||
title:
|
||||
description: 文档标题,只支持纯文本。
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
title:
|
||||
description: 文档标题
|
||||
type: string
|
||||
token:
|
||||
description: 文档唯一标识
|
||||
type: string
|
||||
type:
|
||||
description: 文档类型
|
||||
type: string
|
||||
url:
|
||||
description: 文档链接
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 创建文档,支持创建空文档和带内容的文档,支持 markdown 语法创建。
|
||||
/document/get_document_content:
|
||||
get:
|
||||
operationId: get_document_content
|
||||
parameters:
|
||||
- description: 文档的唯一标识,支持输入文档的 URL。支持新文档和老文档,老文档不支持 markdown 格式获取。
|
||||
in: query
|
||||
name: document_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 指定返回的 MentionUser 即 @用户 的语言,可选值有 [0,1]。0:该用户的默认名称,1:该用户的英文名称,默认值为 0。
|
||||
in: query
|
||||
name: lang
|
||||
schema:
|
||||
default: 0
|
||||
type: integer
|
||||
- description: 文档返回格式,可选值有 text、markdown,可以为空,默认值为 markdown。
|
||||
in: query
|
||||
name: mode
|
||||
schema:
|
||||
default: markdown
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
content:
|
||||
description: 文档纯文本
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取文档的内容,支持以纯文本或者 markdown 格式返回。
|
||||
/document/get_document_info:
|
||||
get:
|
||||
operationId: get_document_info
|
||||
parameters:
|
||||
- description: 文档的唯一标识,支持输入文档的 URL。
|
||||
in: query
|
||||
name: document_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
document:
|
||||
description: 文档信息
|
||||
properties:
|
||||
document_id:
|
||||
description: 文档的唯一标识
|
||||
type: string
|
||||
title:
|
||||
description: 文档标题
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取文档的基本信息
|
||||
/document/list_document_blocks:
|
||||
get:
|
||||
operationId: list_document_blocks
|
||||
parameters:
|
||||
- description: 查询的文档版本,-1 表示文档最新版本。文档创建后,版本为 1。若查询的版本为文档最新版本,则需要持有文档的阅读权限;若查询的版本为文档的历史版本,则需要持有文档的编辑权限。你可通过调用获取文档基本信息获取文档的 revision_id。
|
||||
in: query
|
||||
name: document_revision_id
|
||||
schema:
|
||||
default: -1
|
||||
type: integer
|
||||
x-global-disable: true
|
||||
- description: 用户 ID 类型,可选值有 open_id、union_id、user_id,默认值为 open_id。
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
- description: 文档的唯一标识,支持输入文档的 URL。
|
||||
in: query
|
||||
name: document_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 分页大小
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: 500
|
||||
type: integer
|
||||
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果。
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有更多项
|
||||
type: boolean
|
||||
items:
|
||||
description: 文档的 Block 信息
|
||||
items:
|
||||
description: 文档的 Block 信息项,格式为 json 字符串。
|
||||
type: string
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token。
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取文档的所有块,获取文档所有块的富文本内容并分页返回。
|
||||
/document/search_document:
|
||||
post:
|
||||
operationId: search_document
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
count:
|
||||
description: 指定搜索返回的文件数量。取值范围为 [0,50]。
|
||||
type: integer
|
||||
offset:
|
||||
description: 指定搜索的偏移量,该参数最小为 0,即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200(即 offset + count < 200)。
|
||||
type: integer
|
||||
search_key:
|
||||
description: 指定搜索的关键字
|
||||
type: string
|
||||
required:
|
||||
- search_key
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
docs_entities:
|
||||
description: 包含搜索关键词的文件列表
|
||||
items:
|
||||
description: 包含搜索关键词的文件
|
||||
properties:
|
||||
docs_token:
|
||||
description: 文件的 token
|
||||
type: string
|
||||
docs_type:
|
||||
description: 文件的类型
|
||||
type: string
|
||||
owner_id:
|
||||
description: 文件的所有者
|
||||
type: string
|
||||
title:
|
||||
description: 文件的标题
|
||||
type: string
|
||||
url:
|
||||
description: 文档的链接
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
has_more:
|
||||
description: 结果列表后是否还有数据
|
||||
type: boolean
|
||||
total:
|
||||
description: 包含搜索关键词的文件总数量
|
||||
type: number
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 搜索文档类型的文档
|
||||
/document/search_slides:
|
||||
post:
|
||||
operationId: search_slides
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
count:
|
||||
description: 指定搜索返回的文件数量。取值范围为 [0,50]。
|
||||
type: integer
|
||||
offset:
|
||||
description: 指定搜索的偏移量,该参数最小为 0,即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200(即 offset + count < 200)。
|
||||
type: integer
|
||||
search_key:
|
||||
description: 指定搜索的关键字
|
||||
type: string
|
||||
required:
|
||||
- search_key
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
docs_entities:
|
||||
description: 包含搜索关键词的文件列表
|
||||
items:
|
||||
description: 包含搜索关键词的文件
|
||||
properties:
|
||||
docs_token:
|
||||
description: 文件的 token
|
||||
type: string
|
||||
docs_type:
|
||||
description: 文件的类型
|
||||
type: string
|
||||
owner_id:
|
||||
description: 文件的所有者
|
||||
type: string
|
||||
title:
|
||||
description: 文件的标题
|
||||
type: string
|
||||
url:
|
||||
description: 文档的链接
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
has_more:
|
||||
description: 结果列表后是否还有数据
|
||||
type: boolean
|
||||
total:
|
||||
description: 包含搜索关键词的文件总数量
|
||||
type: number
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 搜索 PPT 类型的文档
|
||||
/document/write_document:
|
||||
post:
|
||||
operationId: write_document
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
content:
|
||||
description: 纯文本或者 markdown 内容,注意文档的内嵌套表格不允许有单元格合并。
|
||||
type: string
|
||||
document_id:
|
||||
description: 文档的唯一标识,支持输入文档的 URL。
|
||||
type: string
|
||||
position:
|
||||
default: end
|
||||
description: '枚举值 start、end,start: 在文档开头添加内容;end: 在文档结尾添加内容,默认值为 end。'
|
||||
type: string
|
||||
required:
|
||||
- document_id
|
||||
- content
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: integer
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 在文档中新增内容,支持纯文本或者 markdown 格式。
|
||||
/drive/download_media:
|
||||
get:
|
||||
operationId: download_media
|
||||
parameters:
|
||||
- description: 素材唯一标识
|
||||
in: query
|
||||
name: file_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 拥有高级权限的多维表格在下载素材时,需要添加额外的扩展信息作为 URL 查询参数鉴权。详情参考https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction
|
||||
in: query
|
||||
name: extra
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 响应数据
|
||||
properties:
|
||||
file_base64:
|
||||
description: 素材base64
|
||||
type: string
|
||||
file_name:
|
||||
description: 素材名称
|
||||
type: string
|
||||
file_token:
|
||||
description: 素材唯一标识
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 失败描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 下载素材
|
||||
/drive/upload_media:
|
||||
post:
|
||||
operationId: upload_media
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
extra:
|
||||
description: 额外参数。参考文档:https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction#3b8635d3
|
||||
type: string
|
||||
x-global-disable: true
|
||||
file_name:
|
||||
description: 待上传的素材的名称 示例值:"demo.jpeg" 数据校验规则: - 最大长度:250 字符
|
||||
type: string
|
||||
file_url:
|
||||
description: 待上传的素材链接,需要在国内可公开访问
|
||||
type: string
|
||||
parent_node:
|
||||
description: 上传点的 token,即要上传的云文档的 token,用于指定素材将要上传到的云文档或位置。支持填写文档URL
|
||||
type: string
|
||||
parent_type:
|
||||
description: 上传点的类型。 示例值:"docx_image"、"bitable_image",参考文档:https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction
|
||||
type: string
|
||||
required:
|
||||
- file_url
|
||||
- file_name
|
||||
- parent_type
|
||||
- parent_node
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 响应结果
|
||||
properties:
|
||||
file_token:
|
||||
description: 上传的素材唯一标识
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 上传素材到飞书云文档、文档空间、多维表格、电子表格。上传成功后获取对应素材的飞书file_token。详见飞书开发文档 https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
499
backend/conf/plugin/pluginproduct/lark_message.yaml
Normal file
@@ -0,0 +1,499 @@
|
||||
info:
|
||||
description: |-
|
||||
飞书消息,支持以下功能
|
||||
|
||||
1. 使用飞书自定义机器人 webhook 发送消息;
|
||||
2. 使用飞书应用机器人发送消息;
|
||||
3. 获取指定单聊、群聊的消息历史;
|
||||
4. 获取指定话题的消息历史;
|
||||
title: 飞书消息
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/message/get_chat_messages:
|
||||
get:
|
||||
operationId: get_chat_messages
|
||||
parameters:
|
||||
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
|
||||
in: header
|
||||
name: appid
|
||||
schema:
|
||||
type: string
|
||||
- description: appsecret 应用秘钥,创建应用后获得。
|
||||
in: header
|
||||
name: appsecret
|
||||
schema:
|
||||
type: string
|
||||
- description: 群聊或单聊的 ID,获取方式参见群 ID 说明。https://open.larkoffice.com/document/server-docs/group/chat/chat-id-description
|
||||
in: query
|
||||
name: container_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 待查询历史信息的起始时间,格式为 "2006-01-02 15:04:05"。
|
||||
in: query
|
||||
name: start_time
|
||||
schema:
|
||||
type: string
|
||||
- description: 待查询历史信息的结束时间,格式为 "2006-01-02 15:04:05"。
|
||||
in: query
|
||||
name: end_time
|
||||
schema:
|
||||
type: string
|
||||
- description: 消息排序方式,可选值有 ByCreateTimeAsc:按消息创建时间升序排列;ByCreateTimeDesc:按消息创建时间降序排列。默认值为:ByCreateTimeAsc。注意:使用 page_token 分页请求时,排序方式(sort_type)均与第一次请求一致,不支持中途改换排序方式。
|
||||
in: query
|
||||
name: sort_type
|
||||
schema:
|
||||
default: ByCreateTimeAsc
|
||||
type: string
|
||||
- description: 分页大小,即单次请求所返回的数据条目数。默认值为 20,取值范围为 [1,50]。
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: 20
|
||||
type: integer
|
||||
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果。
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
|
||||
in: header
|
||||
name: tenant-access-token
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有更多项
|
||||
type: boolean
|
||||
items:
|
||||
description: 历史消息数据
|
||||
items:
|
||||
description: 消息详情
|
||||
properties:
|
||||
body:
|
||||
description: 通过 body 内的 content 参数,返回当前的消息内容。
|
||||
properties:
|
||||
content:
|
||||
description: 消息内容,JSON 结构序列化后的字符串,不同消息类型(msg_type)对应不同内容。 注意:卡片消息内容与在卡片搭建工具中获取的卡片 JSON 不一致,暂不支持返回原始卡片 JSON。
|
||||
type: string
|
||||
type: object
|
||||
chat_id:
|
||||
description: 消息所属的群 ID。你可以调用获取群信息接口,根据群 ID 获取群详情。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get
|
||||
type: string
|
||||
create_time:
|
||||
description: 消息生成的时间
|
||||
type: string
|
||||
deleted:
|
||||
description: '消息是否被撤回或删除。true: 是,false: 否'
|
||||
type: boolean
|
||||
mentions:
|
||||
description: 消息内被 @ 的用户或机器人列表。
|
||||
properties:
|
||||
id:
|
||||
description: 被 @ 的用户或机器人的 open_id。
|
||||
type: string
|
||||
id_type:
|
||||
description: 被 @ 的用户或机器人的 ID 类型,目前仅支持 open_id。
|
||||
type: string
|
||||
key:
|
||||
description: 被 @ 的用户或机器人序号。例如,第 3 个被 @ 到的成员,取值为 @_user_3。
|
||||
type: string
|
||||
name:
|
||||
description: 被 @ 的用户或机器人的姓名。
|
||||
type: string
|
||||
tenant_key:
|
||||
description: 租户唯一标识。该标识用来识别被 @ 用户或机器人的租户,也可以用来获取租户访问凭证(tenant_access_token)。
|
||||
type: string
|
||||
type: object
|
||||
message_id:
|
||||
description: 消息 ID,由系统生成的唯一 ID 标识。后续对消息的管理维护操作均需要使用该 ID。
|
||||
type: string
|
||||
msg_type:
|
||||
description: 消息类型。各类型详情参考 https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/message_content
|
||||
type: string
|
||||
parent_id:
|
||||
description: 父消息 ID。在有多个回复的消息树中,parent_id 为当前消息上一层的消息 message_id。如果回复的是话题,则 parent_id 始终为话题内根消息的 message_id。关于 parent_id 的更多说明,参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
root_id:
|
||||
description: 根消息 ID。在有多个回复的消息树中,root_id 为根消息的 message_id。如果回复的是话题,则 root_id 为话题内根消息的 message_id。关于 root_id 的更多说明,参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
sender:
|
||||
description: 当前消息的发送者信息。
|
||||
properties:
|
||||
id:
|
||||
description: 发送者的 ID。
|
||||
type: string
|
||||
id_type:
|
||||
description: 发送者的 ID 类型。可能值有: open_id:表示发送者为用户,且返回的 ID 是用户的 open_id。 app_id:表示发送者为应用,切返回的 ID 是应用的 app_id。
|
||||
type: string
|
||||
sender_type:
|
||||
description: '发送者类型。 可能值有: user: 用户 app: 应用 anonymous: 匿名 unknown: 未知。'
|
||||
type: string
|
||||
tenant_key:
|
||||
description: 租户唯一标识。该标识用来识别租户,也可以用来获取租户访问凭证(tenant_access_token)。
|
||||
type: string
|
||||
type: object
|
||||
thread_id:
|
||||
description: 消息所属的话题 ID(不返回说明该消息不是话题形式的消息)。了解话题可参见话题概述。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
|
||||
type: string
|
||||
update_time:
|
||||
description: 消息更新的时间
|
||||
type: string
|
||||
updated:
|
||||
description: 消息是否被更新。 true:是,false:否。
|
||||
type: boolean
|
||||
upper_message_id:
|
||||
description: 合并转发消息中,上一层级的消息 ID,仅在合并转发场景会有返回值。了解 upper_message_id 可参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token。
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取指定单聊、群聊的消息历史
|
||||
/message/get_thread_messages:
|
||||
get:
|
||||
operationId: get_thread_messages
|
||||
parameters:
|
||||
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
|
||||
in: header
|
||||
name: appid
|
||||
schema:
|
||||
type: string
|
||||
- description: appsecret 应用秘钥,创建应用后获得。
|
||||
in: header
|
||||
name: appsecret
|
||||
schema:
|
||||
type: string
|
||||
- description: 话题 ID,获取方式参见话题概述的如何获取 thread_id 章节。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
|
||||
in: query
|
||||
name: container_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 待查询历史信息的起始时间,格式为 "2006-01-02 15:04:05"。
|
||||
in: query
|
||||
name: start_time
|
||||
schema:
|
||||
type: string
|
||||
x-global-disable: true
|
||||
- description: 待查询历史信息的结束时间,格式为 "2006-01-02 15:04:05"。
|
||||
in: query
|
||||
name: end_time
|
||||
schema:
|
||||
type: string
|
||||
x-global-disable: true
|
||||
- description: 消息排序方式,可选值有 ByCreateTimeAsc:按消息创建时间升序排列;ByCreateTimeDesc:按消息创建时间降序排列。默认值为:ByCreateTimeAsc。注意:使用 page_token 分页请求时,排序方式(sort_type)均与第一次请求一致,不支持中途改换排序方式。
|
||||
in: query
|
||||
name: sort_type
|
||||
schema:
|
||||
default: ByCreateTimeAsc
|
||||
type: string
|
||||
- description: 分页大小,即单次请求所返回的数据条目数。默认值为 20,取值范围为 [1,50]。
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: 20
|
||||
type: integer
|
||||
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果。
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
|
||||
in: header
|
||||
name: tenant-access-token
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有更多项
|
||||
type: boolean
|
||||
items:
|
||||
description: 历史消息数据
|
||||
items:
|
||||
description: 消息详情
|
||||
properties:
|
||||
body:
|
||||
description: 通过 body 内的 content 参数,返回当前的消息内容。
|
||||
properties:
|
||||
content:
|
||||
description: 消息内容,JSON 结构序列化后的字符串,不同消息类型(msg_type)对应不同内容。 注意:卡片消息内容与在卡片搭建工具中获取的卡片 JSON 不一致,暂不支持返回原始卡片 JSON。
|
||||
type: string
|
||||
type: object
|
||||
chat_id:
|
||||
description: 消息所属的群 ID。你可以调用获取群信息接口,根据群 ID 获取群详情。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get
|
||||
type: string
|
||||
create_time:
|
||||
description: 消息生成的时间
|
||||
type: string
|
||||
deleted:
|
||||
description: '消息是否被撤回或删除。true: 是,false: 否'
|
||||
type: boolean
|
||||
mentions:
|
||||
description: 消息内被 @ 的用户或机器人列表。
|
||||
properties:
|
||||
id:
|
||||
description: 被 @ 的用户或机器人的 open_id。
|
||||
type: string
|
||||
id_type:
|
||||
description: 被 @ 的用户或机器人的 ID 类型,目前仅支持 open_id。
|
||||
type: string
|
||||
key:
|
||||
description: 被 @ 的用户或机器人序号。例如,第 3 个被 @ 到的成员,取值为 @_user_3。
|
||||
type: string
|
||||
name:
|
||||
description: 被 @ 的用户或机器人的姓名。
|
||||
type: string
|
||||
tenant_key:
|
||||
description: 租户唯一标识。该标识用来识别被 @ 用户或机器人的租户,也可以用来获取租户访问凭证(tenant_access_token)。
|
||||
type: string
|
||||
type: object
|
||||
message_id:
|
||||
description: 消息 ID,由系统生成的唯一 ID 标识。后续对消息的管理维护操作均需要使用该 ID。
|
||||
type: string
|
||||
msg_type:
|
||||
description: 消息类型。各类型详情参考 https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/message_content
|
||||
type: string
|
||||
parent_id:
|
||||
description: 父消息 ID。在有多个回复的消息树中,parent_id 为当前消息上一层的消息 message_id。如果回复的是话题,则 parent_id 始终为话题内根消息的 message_id。关于 parent_id 的更多说明,参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
root_id:
|
||||
description: 根消息 ID。在有多个回复的消息树中,root_id 为根消息的 message_id。如果回复的是话题,则 root_id 为话题内根消息的 message_id。关于 root_id 的更多说明,参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
sender:
|
||||
description: 当前消息的发送者信息。
|
||||
properties:
|
||||
id:
|
||||
description: 发送者的 ID。
|
||||
type: string
|
||||
id_type:
|
||||
description: 发送者的 ID 类型。可能值有: open_id:表示发送者为用户,且返回的 ID 是用户的 open_id。 app_id:表示发送者为应用,切返回的 ID 是应用的 app_id。
|
||||
type: string
|
||||
sender_type:
|
||||
description: '发送者类型。 可能值有: user: 用户 app: 应用 anonymous: 匿名 unknown: 未知。'
|
||||
type: string
|
||||
tenant_key:
|
||||
description: 租户唯一标识。该标识用来识别租户,也可以用来获取租户访问凭证(tenant_access_token)。
|
||||
type: string
|
||||
type: object
|
||||
thread_id:
|
||||
description: 消息所属的话题 ID(不返回说明该消息不是话题形式的消息)。了解话题可参见话题概述。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
|
||||
type: string
|
||||
update_time:
|
||||
description: 消息更新的时间
|
||||
type: string
|
||||
updated:
|
||||
description: 消息是否被更新。 true:是,false:否。
|
||||
type: boolean
|
||||
upper_message_id:
|
||||
description: 合并转发消息中,上一层级的消息 ID,仅在合并转发场景会有返回值。了解 upper_message_id 可参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token。
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取指定话题的消息历史
|
||||
/message/send_bot_message:
|
||||
post:
|
||||
operationId: send_bot_message
|
||||
parameters:
|
||||
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
|
||||
in: header
|
||||
name: tenant-access-token
|
||||
schema:
|
||||
type: string
|
||||
- description: 用户 ID 类型,可选值有 open_id、union_id、user_id、email、chat_id。
|
||||
in: query
|
||||
name: receive_id_type
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
|
||||
in: header
|
||||
name: appid
|
||||
schema:
|
||||
type: string
|
||||
- description: appsecret 应用秘钥,创建应用后获得。
|
||||
in: header
|
||||
name: appsecret
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
content:
|
||||
description: 消息内容,文本字符串或者JSON 结构序列化后的字符串,其中 msg_type 为 text、share_chat、share_user、image 时支持文本字符串。不同 msg_type 对应不同的消息内容,具体格式说明参考:https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json
|
||||
type: string
|
||||
msg_type:
|
||||
description: '消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user 等,类型定义请参考: https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json'
|
||||
type: string
|
||||
receive_id:
|
||||
description: 消息接收者的 ID,ID 类型应与查询参数 receive_id_type 对应。
|
||||
type: string
|
||||
required:
|
||||
- receive_id
|
||||
- msg_type
|
||||
- content
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
data:
|
||||
description: 返回结果
|
||||
properties:
|
||||
chat_id:
|
||||
description: 所属的群
|
||||
type: string
|
||||
create_time:
|
||||
description: 消息生成的时间戳(毫秒)
|
||||
type: string
|
||||
deleted:
|
||||
description: 消息是否被撤回
|
||||
type: boolean
|
||||
message_id:
|
||||
description: 消息 id
|
||||
type: string
|
||||
msg_type:
|
||||
description: 消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user 等。
|
||||
type: string
|
||||
parent_id:
|
||||
description: 父消息的 id,用于回复消息场景。
|
||||
type: string
|
||||
root_id:
|
||||
description: 根消息 id,用于回复消息场景。
|
||||
type: string
|
||||
thread_id:
|
||||
description: 消息所属的话题 id
|
||||
type: string
|
||||
update_time:
|
||||
description: 消息更新的时间戳(毫秒)
|
||||
type: string
|
||||
updated:
|
||||
description: 消息是否被更新
|
||||
type: boolean
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 使用应用机器人发送飞书消息
|
||||
/message/send_webhook_message:
|
||||
post:
|
||||
operationId: send_webhook_message
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
content:
|
||||
description: 消息内容,文本字符串或者 JSON 结构序列化后的字符串,其中 msg_type 为 text、share_chat、image 时支持文本字符串。不同 msg_type 对应不同内容,具体格式说明参考:发送消息内容(https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json)
|
||||
type: string
|
||||
msg_type:
|
||||
default: text
|
||||
description: '消息类型 支持:text、image、interactive、share_chat 类型,不支持 post、audio、media、share_user 等类型。类型定义请参考: https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json'
|
||||
type: string
|
||||
webhook:
|
||||
description: webhook key,支持 webhook URL。
|
||||
type: string
|
||||
required:
|
||||
- webhook
|
||||
- msg_type
|
||||
- content
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败。
|
||||
type: number
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 使用飞书自定义机器人 webhook 发送消息
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
795
backend/conf/plugin/pluginproduct/lark_sheet.yaml
Normal file
@@ -0,0 +1,795 @@
|
||||
info:
|
||||
description: |-
|
||||
对飞书电子表格做操作,包含以下操作:
|
||||
1.创建电子表格;
|
||||
2.新增多行至工作表;
|
||||
3.新增多列至工作表;
|
||||
4.搜索电子表格类型文档;
|
||||
5.获取电子表格信息;
|
||||
6.获取所有工作表;
|
||||
7.读取工作表行列内容;
|
||||
title: 飞书电子表格
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/spreadsheet/add_cols:
|
||||
post:
|
||||
operationId: add_cols
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
length:
|
||||
description: 要增加的列数
|
||||
type: number
|
||||
sheet_id:
|
||||
description: 工作表 ID,与sheet_name二者其一必填
|
||||
type: string
|
||||
sheet_name:
|
||||
description: 工作表名称,与sheet_id二者其一必填
|
||||
type: string
|
||||
spreadsheet_token:
|
||||
description: 电子表格 token,支持输入电子表格 url
|
||||
type: string
|
||||
values:
|
||||
description: 新增列的单元格内容,数组对象字符串,每个数组一行表格数据,格式:[["编号","姓名","年龄"],[1,"张三",10],[2,"李四",11]]
|
||||
type: string
|
||||
required:
|
||||
- spreadsheet_token
|
||||
- length
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
addCount:
|
||||
description: 增加的列数
|
||||
type: number
|
||||
majorDimension:
|
||||
description: 增加的表维度,COLUMNS:列
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 新增多列至工作表最后
|
||||
/spreadsheet/add_rows:
|
||||
post:
|
||||
operationId: add_rows
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
length:
|
||||
description: 要增加行数,范围(0-5000]
|
||||
type: number
|
||||
sheet_id:
|
||||
description: 工作表 ID,与sheet_name二者其一必填
|
||||
type: string
|
||||
sheet_name:
|
||||
description: 工作表名称,与sheet_id二者其一必填
|
||||
type: string
|
||||
spreadsheet_token:
|
||||
description: 电子表格 token,支持输入电子表格 url
|
||||
type: string
|
||||
values:
|
||||
description: 新增行的表格内容,数组对象字符串,每个数组一行表格数据,格式,如:[["编号","姓名","年龄"],[1,"张三",10],[2,"李四",11]]
|
||||
type: string
|
||||
required:
|
||||
- spreadsheet_token
|
||||
- length
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
addCount:
|
||||
description: 增加的行数
|
||||
type: number
|
||||
majorDimension:
|
||||
description: 增加的表格维度,ROWS:行
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 新增多行至工作表最后
|
||||
/spreadsheet/create_spreadsheet:
|
||||
post:
|
||||
operationId: create_spreadsheet
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
folder_token:
|
||||
description: 文件夹 token,支持文件夹url输入,如:https://bytedance.larkoffice.com/drive/folder/CxHEf4DCSlNkL2dUTCJcPRgentg
|
||||
type: string
|
||||
title:
|
||||
description: 电子表格标题
|
||||
type: string
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
spreadsheet:
|
||||
description: 电子表格的基础信息
|
||||
properties:
|
||||
folder_token:
|
||||
description: 文件夹 token
|
||||
type: string
|
||||
spreadsheet_token:
|
||||
description: 电子表格 token
|
||||
type: string
|
||||
title:
|
||||
description: 电子表格标题
|
||||
type: string
|
||||
url:
|
||||
description: 电子表格的 URL 链接
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 创建电子表格
|
||||
/spreadsheet/delete_cols:
|
||||
delete:
|
||||
operationId: delete_cols
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
end_index:
|
||||
description: 要删除的列结束的位置。从 1 开始计数
|
||||
type: number
|
||||
sheet_id:
|
||||
description: 工作表的 ID
|
||||
type: string
|
||||
sheet_name:
|
||||
description: 工作表的名称
|
||||
type: string
|
||||
spreadsheet_token:
|
||||
description: 电子表格的 token,支持填写电子表格的 URL或Token
|
||||
type: string
|
||||
start_index:
|
||||
description: 要删除的列结束的位置。从 1 开始计数
|
||||
type: number
|
||||
required:
|
||||
- spreadsheet_token
|
||||
- start_index
|
||||
- end_index
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码
|
||||
type: integer
|
||||
data:
|
||||
properties:
|
||||
delCount:
|
||||
description: 一共删除的列数
|
||||
type: number
|
||||
majorDimension:
|
||||
description: 删除的维度,COLUMNS:代表列
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 日志ID
|
||||
type: string
|
||||
msg:
|
||||
description: 错误信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 删除电子表格工作表列
|
||||
/spreadsheet/delete_rows:
|
||||
delete:
|
||||
operationId: delete_rows
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
end_index:
|
||||
description: 要删除的行结束的位置。从 1 开始计数
|
||||
type: number
|
||||
sheet_id:
|
||||
description: 工作表的 ID
|
||||
type: string
|
||||
sheet_name:
|
||||
description: 工作表名称
|
||||
type: string
|
||||
spreadsheet_token:
|
||||
description: 电子表格的 token,支持填写电子表格的 URL或Token
|
||||
type: string
|
||||
start_index:
|
||||
description: 要删除的行起始位置,从 1 开始计数
|
||||
type: number
|
||||
required:
|
||||
- spreadsheet_token
|
||||
- start_index
|
||||
- end_index
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码
|
||||
type: integer
|
||||
data:
|
||||
properties:
|
||||
delCount:
|
||||
description: 一共删除的行数
|
||||
type: number
|
||||
majorDimension:
|
||||
description: 删除的维度。ROWS:代表行
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 日志ID
|
||||
type: string
|
||||
msg:
|
||||
description: 错误信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 删除电子表格工作表行
|
||||
/spreadsheet/get_spreadsheet:
|
||||
get:
|
||||
operationId: get_spreadsheet
|
||||
parameters:
|
||||
- description: 电子表格 token,支持输入电子表格 url
|
||||
in: query
|
||||
name: spreadsheet_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 用户 ID 类型
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
spreadsheet:
|
||||
description: 电子表格的基础信息
|
||||
properties:
|
||||
owner_id:
|
||||
description: 电子表格的所有者 ID,ID 类型由查询参数 user_id_type 决定
|
||||
type: string
|
||||
title:
|
||||
description: 电子表格标题
|
||||
type: string
|
||||
token:
|
||||
description: 电子表格 token
|
||||
type: string
|
||||
url:
|
||||
description: 电子表格的 URL 链接
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取电子表格信息
|
||||
/spreadsheet/list_spreadsheet_sheets:
|
||||
get:
|
||||
operationId: list_spreadsheet_sheets
|
||||
parameters:
|
||||
- description: 电子表格 token,支持输入电子表格 url
|
||||
in: query
|
||||
name: spreadsheet_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
sheets:
|
||||
description: 工作表列表
|
||||
items:
|
||||
description: 工作表信息
|
||||
properties:
|
||||
grid_properties:
|
||||
description: 单元格属性,仅当 resource_type 为 sheet 即工作表类型为电子表格时返回
|
||||
properties:
|
||||
column_count:
|
||||
description: 工作表的列数量
|
||||
type: number
|
||||
frozen_column_count:
|
||||
description: 冻结的列数量
|
||||
type: number
|
||||
frozen_row_count:
|
||||
description: 冻结的行数量
|
||||
type: number
|
||||
row_count:
|
||||
description: 工作表的行数
|
||||
type: number
|
||||
type: object
|
||||
hidden:
|
||||
description: 工作表是否被隐藏,true:被隐藏,false:未被隐藏
|
||||
type: boolean
|
||||
index:
|
||||
description: 工作表索引位置,索引从 0 开始计数
|
||||
type: integer
|
||||
merges:
|
||||
description: 合并单元格的相关信息,没有合并单元格则不返回
|
||||
items:
|
||||
description: 单元格信息
|
||||
properties:
|
||||
end_column_index:
|
||||
description: 结束列,从 0 开始计数
|
||||
type: number
|
||||
end_row_index:
|
||||
description: 结束行,从 0 开始计数
|
||||
type: number
|
||||
start_column_index:
|
||||
description: 起始列,从 0 开始计数
|
||||
type: number
|
||||
start_row_index:
|
||||
description: 起始行,从 0 开始计数
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
resource_type:
|
||||
description: 工作表类型,sheet:工作表,bitable:多维表格,#UNSUPPORTED_TYPE:不支持的类型
|
||||
type: string
|
||||
sheet_id:
|
||||
description: 工作表 ID
|
||||
type: string
|
||||
title:
|
||||
description: 工作表标题
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 获取电子表格所有工作表
|
||||
/spreadsheet/read_cols:
|
||||
get:
|
||||
operationId: read_cols
|
||||
parameters:
|
||||
- description: 电子表格 token,支持输入电子表格 url
|
||||
in: query
|
||||
name: spreadsheet_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 工作表 ID,与sheet_name二者其一必填
|
||||
in: query
|
||||
name: sheet_id
|
||||
schema:
|
||||
type: string
|
||||
- description: 用户 ID 类型,默认 open_id
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
- description: 起始列号,从1开始
|
||||
in: query
|
||||
name: start_col
|
||||
schema:
|
||||
default: 1
|
||||
type: integer
|
||||
- description: 读取列数
|
||||
in: query
|
||||
name: num_cols
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
- description: 工作表名称,与sheet_id二者其一必填
|
||||
in: query
|
||||
name: sheet_name
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
|
||||
type: number
|
||||
spreadsheetToken:
|
||||
description: 表格 token
|
||||
type: string
|
||||
valueRange:
|
||||
description: 读取的值与范围
|
||||
properties:
|
||||
majorDimension:
|
||||
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS,即数据为从左到右、从上到下的读取顺序
|
||||
type: string
|
||||
range:
|
||||
description: 读取的范围。为空时表示查询范围没有数据。
|
||||
type: string
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
|
||||
type: number
|
||||
valuesJsonString:
|
||||
description: 返回的数据内容
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 返回信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 读取工作表列数据
|
||||
/spreadsheet/read_rows:
|
||||
get:
|
||||
operationId: read_rows
|
||||
parameters:
|
||||
- description: 电子表格 token,支持输入电子表格 url
|
||||
in: query
|
||||
name: spreadsheet_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 工作表 ID,与sheet_name二者其一必填
|
||||
in: query
|
||||
name: sheet_id
|
||||
schema:
|
||||
type: string
|
||||
- description: 用户 ID 类型
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
- description: 起始行号,从1开始
|
||||
in: query
|
||||
name: start_row
|
||||
schema:
|
||||
default: 1
|
||||
type: integer
|
||||
- description: 读取行数
|
||||
in: query
|
||||
name: num_rows
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
- description: 工作表名称,与sheet_id二者其一必填
|
||||
in: query
|
||||
name: sheet_name
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
|
||||
type: number
|
||||
spreadsheetToken:
|
||||
description: 表格的 token
|
||||
type: string
|
||||
valueRange:
|
||||
description: 读取的值与范围
|
||||
properties:
|
||||
majorDimension:
|
||||
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS,即数据为从左到右、从上到下的读取顺序。
|
||||
type: string
|
||||
range:
|
||||
description: 读取的范围
|
||||
type: string
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
|
||||
type: number
|
||||
valuesJsonString:
|
||||
description: 读取的表格内容
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 读取工作表行数据
|
||||
/spreadsheet/read_table:
|
||||
get:
|
||||
operationId: read_table
|
||||
parameters:
|
||||
- description: 电子表格 token,支持输入电子表格 url
|
||||
in: query
|
||||
name: spreadsheet_token
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 工作表 ID,与sheet_name二者其一必填
|
||||
in: query
|
||||
name: sheet_id
|
||||
schema:
|
||||
type: string
|
||||
- description: '用户 ID 类型 '
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
- description: 取数范围,格式如:A1:B2,query=all时可为空
|
||||
in: query
|
||||
name: range
|
||||
schema:
|
||||
type: string
|
||||
- description: 传 all,表示查询表格所有数据,但最多查询100列数据
|
||||
in: query
|
||||
name: query
|
||||
schema:
|
||||
type: string
|
||||
- description: 工作表名称,与sheet_id二者其一必填
|
||||
in: query
|
||||
name: sheet_name
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
|
||||
type: number
|
||||
spreadsheetToken:
|
||||
description: 电子表格 token
|
||||
type: string
|
||||
valueRange:
|
||||
description: 读取的值与范围
|
||||
properties:
|
||||
majorDimension:
|
||||
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS,即数据为从左到右、从上到下的读取顺序。
|
||||
type: string
|
||||
range:
|
||||
description: 读取的范围。为空时表示查询范围没有数据。
|
||||
type: string
|
||||
revision:
|
||||
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
|
||||
type: number
|
||||
valuesJsonString:
|
||||
description: 读取的表格数据内容
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误信息
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 自定义读取电子表格行列数据
|
||||
/spreadsheet/search_spreadsheet:
|
||||
post:
|
||||
operationId: search_spreadsheet
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
count:
|
||||
description: 指定搜索返回的文件数量,取值范围为 [0,50]
|
||||
type: integer
|
||||
offset:
|
||||
description: 指定搜索的偏移量,该参数最小为 0,即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200(即 offset + count < 200)
|
||||
type: integer
|
||||
search_key:
|
||||
description: 指定搜索的关键字
|
||||
type: string
|
||||
required:
|
||||
- search_key
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
docs_entities:
|
||||
description: 包含搜索关键词的文件列表
|
||||
items:
|
||||
description: 文件列表
|
||||
properties:
|
||||
docs_token:
|
||||
description: 文件 token
|
||||
type: string
|
||||
docs_type:
|
||||
description: 文件类型
|
||||
type: string
|
||||
owner_id:
|
||||
description: 文件所有者
|
||||
type: string
|
||||
title:
|
||||
description: 文件标题
|
||||
type: string
|
||||
url:
|
||||
description: 文档链接
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
has_more:
|
||||
description: 结果列表后是否还有数据
|
||||
type: boolean
|
||||
total:
|
||||
description: 包含搜索关键词的文件总数量
|
||||
type: number
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 搜索电子表格
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
409
backend/conf/plugin/pluginproduct/lark_task.yaml
Normal file
@@ -0,0 +1,409 @@
|
||||
info:
|
||||
description: |-
|
||||
调用飞书开放平台任务相关API,支持以下操作:
|
||||
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
|
||||
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
|
||||
3.删除任务:对创建的飞书任务做删除;
|
||||
4.列出所有任务:查询用户下单所有飞书任务;
|
||||
title: 飞书任务
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/task/create_task:
|
||||
post:
|
||||
operationId: create_task
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
completed_at:
|
||||
description: 任务完成时间,格式:2006-01-02 15:04:05,不填写表示创建一个未完成任务;填写一个具体的时间表示创建一个已完成任务
|
||||
type: string
|
||||
description:
|
||||
description: 任务备注
|
||||
type: string
|
||||
end_time:
|
||||
description: 任务结束时间,格式:2006-01-02 15:04:05
|
||||
type: string
|
||||
start_time:
|
||||
description: 任务开始时间,格式:2006-01-02 15:04:05
|
||||
type: string
|
||||
summary:
|
||||
description: 任务标题
|
||||
type: string
|
||||
required:
|
||||
- summary
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非0表示失败
|
||||
type: number
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
completed_at:
|
||||
description: 任务完成时间,格式:2024-07-19 20:50:00
|
||||
type: string
|
||||
created_at:
|
||||
description: 任务创建时间,格式:2024-07-19 20:50:00
|
||||
type: string
|
||||
creator:
|
||||
description: 任务创建者信息
|
||||
properties:
|
||||
id:
|
||||
description: 创建者用户 ID
|
||||
type: string
|
||||
type:
|
||||
description: 创建者类型
|
||||
type: string
|
||||
type: object
|
||||
description:
|
||||
description: 任务描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 任务截止时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
guid:
|
||||
description: 任务guid,任务的唯一ID
|
||||
type: string
|
||||
is_end_time_all_day:
|
||||
description: 结束时间是否截止到一个日期
|
||||
type: boolean
|
||||
is_start_time_all_day:
|
||||
description: 开始时间是否截止到一个日期
|
||||
type: boolean
|
||||
members:
|
||||
description: 成员列表
|
||||
items:
|
||||
description: 成员信息
|
||||
properties:
|
||||
id:
|
||||
description: 成员 ID
|
||||
type: string
|
||||
name:
|
||||
description: 成员名称
|
||||
type: string
|
||||
role:
|
||||
description: 成员角色
|
||||
type: string
|
||||
type:
|
||||
description: 成员类型
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
mode:
|
||||
description: 任务的模式。1 - 会签任务;2 - 或签任务
|
||||
type: integer
|
||||
parent_task_guid:
|
||||
description: 如果当前任务为某个任务的子任务,返回父任务的guid
|
||||
type: string
|
||||
repeat_rule:
|
||||
description: 如果任务为重复任务,返回重复任务的配置
|
||||
type: string
|
||||
source:
|
||||
description: 任务来源
|
||||
type: integer
|
||||
start_time:
|
||||
description: 任务开始时间,格式:2024-07-19 20:20:00
|
||||
type: string
|
||||
status:
|
||||
description: 任务状态,支持"todo"和"done"两种状态
|
||||
type: string
|
||||
subtask_count:
|
||||
description: 该任务的子任务的个数
|
||||
type: integer
|
||||
summary:
|
||||
description: 任务标题
|
||||
type: string
|
||||
task_id:
|
||||
description: 任务界面上的代码
|
||||
type: string
|
||||
url:
|
||||
description: 任务的分享链接
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 创建飞书任务,根据输入的任务标题、任务时间创建飞书任务
|
||||
/task/delete_task:
|
||||
delete:
|
||||
operationId: delete_task
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
task_guid:
|
||||
description: 要删除的任务guid,支持传任务ID和任务链接URL,任务ID 例如:8b5425ec-9f2a-43bd-a3ab-01912f50282b;任务链接url 例如:https://applink.feishu-pre.net/client/todo/detail?guid=8c6bf822-e4da-449a-b82a-dc44020f9be9&suite_entity_num=t21587362
|
||||
type: string
|
||||
required:
|
||||
- task_guid
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: ' 错误描述'
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 删除飞书任务
|
||||
/task/list_tasks:
|
||||
get:
|
||||
operationId: list_tasks
|
||||
parameters:
|
||||
- description: 用户 ID 类型
|
||||
in: query
|
||||
name: user_id_type
|
||||
schema:
|
||||
default: open_id
|
||||
type: string
|
||||
- description: 每页的任务数量,取值范围1-100
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: 10
|
||||
type: integer
|
||||
- description: 查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
- description: 是否按任务完成进行过滤。填写true表示只列出已完成任务;填写false表示只列出未完成任务。不填写表示不过滤。
|
||||
in: query
|
||||
name: completed
|
||||
schema:
|
||||
type: boolean
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非0表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有更多项
|
||||
type: boolean
|
||||
items:
|
||||
description: 返回的任务列表
|
||||
items:
|
||||
description: 任务信息
|
||||
properties:
|
||||
completed_at:
|
||||
description: 任务完成的时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
created_at:
|
||||
description: 任务创建时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
creator:
|
||||
description: 任务创建者
|
||||
properties:
|
||||
id:
|
||||
description: 表示member的id
|
||||
type: string
|
||||
role:
|
||||
description: 成员角色
|
||||
type: string
|
||||
type:
|
||||
description: 成员的类型
|
||||
type: string
|
||||
type: object
|
||||
description:
|
||||
description: 任务备注
|
||||
type: string
|
||||
end_time:
|
||||
description: 任务结束时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
guid:
|
||||
description: 任务guid,任务的唯一ID
|
||||
type: string
|
||||
is_end_time_all_day:
|
||||
description: 结束时间是否截止到一个日期
|
||||
type: boolean
|
||||
is_milestone:
|
||||
description: 是否是里程碑任务
|
||||
type: boolean
|
||||
is_start_time_all_day:
|
||||
description: 开始时间是否截止到一个日期
|
||||
type: boolean
|
||||
members:
|
||||
description: 任务成员列表
|
||||
items:
|
||||
description: 成员信息
|
||||
properties:
|
||||
id:
|
||||
description: 表示member的id
|
||||
type: string
|
||||
role:
|
||||
description: 成员角色
|
||||
type: string
|
||||
type:
|
||||
description: 成员的类型
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
mode:
|
||||
description: 任务的模式。1 - 会签任务;2 - 或签任务
|
||||
type: integer
|
||||
parent_task_guid:
|
||||
description: 如果当前任务为某个任务的子任务,返回父任务的guid
|
||||
type: string
|
||||
repeat_rule:
|
||||
description: 如果任务为重复任务,返回重复任务的配置
|
||||
type: string
|
||||
source:
|
||||
description: 任务创建的来源
|
||||
type: integer
|
||||
start_time:
|
||||
description: 任务开始时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
status:
|
||||
description: 任务的状态,支持"todo"和"done"两种状态
|
||||
type: string
|
||||
subtask_count:
|
||||
description: 该任务的子任务个数
|
||||
type: integer
|
||||
summary:
|
||||
description: 任务标题
|
||||
type: string
|
||||
task_id:
|
||||
description: 任务界面上的代码
|
||||
type: string
|
||||
updated_at:
|
||||
description: 任务最后一次更新的时间,格式:2024-07-19 21:20:00
|
||||
type: string
|
||||
url:
|
||||
description: 任务的分享链接
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 列取飞书任务列表
|
||||
/task/update_task:
|
||||
patch:
|
||||
operationId: update_task
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
completed_time:
|
||||
description: 任务完成时间,有传入才更新,格式:2024-08-19 11:20:00
|
||||
type: string
|
||||
description:
|
||||
description: 任务描述:如:进行一场需求评审会
|
||||
type: string
|
||||
end_time:
|
||||
description: 任务结束时间,有传入才更新,格式:2024-08-15 23:20:00
|
||||
type: string
|
||||
start_time:
|
||||
description: 任务开始时间,有传入才更新,格式:2024-08-15 23:00:00
|
||||
type: string
|
||||
summary:
|
||||
description: 任务标题,如:需求评审
|
||||
type: string
|
||||
task_guid:
|
||||
description: 任务ID,支持 传入任务ID和任务链接URL,任务ID 如:42cad8a0-f8c8-4344-9be2-d1d7e8e91b64;任务链接url 如:https://applink.feishu-pre.net/client/todo/detail?guid=42cad8a0-f8c8-4344-9be2-d1d7e8e91b64&suite_entity_num=t21700217
|
||||
type: string
|
||||
required:
|
||||
- task_guid
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 任务信息
|
||||
properties:
|
||||
completed_time:
|
||||
description: 任务完成时间,格式:2024-09-17 23:30:00
|
||||
type: string
|
||||
created_at:
|
||||
description: 创建时间,格式:2024-09-17 23:30:00
|
||||
type: string
|
||||
description:
|
||||
description: 任务描述
|
||||
type: string
|
||||
end_time:
|
||||
description: 任务结束时间,格式:2024-08-17 12:00:00
|
||||
type: string
|
||||
start_time:
|
||||
description: 任务开始时间,格式:2024-08-16 10:00:00
|
||||
type: string
|
||||
summary:
|
||||
description: ' 任务标题'
|
||||
type: string
|
||||
task_guid:
|
||||
description: 任务 ID
|
||||
type: string
|
||||
updated_at:
|
||||
description: 更新时间,格式:2024-09-17 23:30:00
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 更新飞书任务
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
95
backend/conf/plugin/pluginproduct/lark_wiki.yaml
Normal file
@@ -0,0 +1,95 @@
|
||||
info:
|
||||
description: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
|
||||
title: 飞书知识库
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/wiki/search_wiki:
|
||||
post:
|
||||
operationId: search_wiki
|
||||
parameters:
|
||||
- description: 下一页的分页 token,首页不需要填写,根据返回的 token 获取下一页数据
|
||||
in: query
|
||||
name: page_token
|
||||
schema:
|
||||
type: string
|
||||
- description: 本页返回数量的最大值,范围0-50
|
||||
in: query
|
||||
name: page_size
|
||||
schema:
|
||||
default: 20
|
||||
type: integer
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
node_id:
|
||||
description: 不为空搜索该节点及其所有子节点,为空搜索所有 wiki(使用 node_id 过滤必须传入 space_id)
|
||||
type: string
|
||||
query:
|
||||
description: 搜索关键词
|
||||
type: string
|
||||
space_id:
|
||||
description: 文档所属的知识空间ID,为空搜索全部知识空间,支持输入空间url,如:https://svi136aogf123.feishu.cn/wiki/settings/7166950623940706332
|
||||
type: string
|
||||
required:
|
||||
- query
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
description: 错误码,非 0 表示失败
|
||||
type: integer
|
||||
data:
|
||||
description: 返回数据
|
||||
properties:
|
||||
has_more:
|
||||
description: 是否还有下一页数据
|
||||
type: boolean
|
||||
items:
|
||||
description: wiki 信息数组
|
||||
items:
|
||||
description: wiki 信息
|
||||
properties:
|
||||
icon:
|
||||
description: wiki 对应图标的 url
|
||||
type: string
|
||||
node_id:
|
||||
description: wiki 节点 Id
|
||||
type: string
|
||||
obj_type:
|
||||
description: wiki 类型, 参考文档类型表
|
||||
type: integer
|
||||
space_id:
|
||||
description: wiki 所属知识空间 Id
|
||||
type: string
|
||||
title:
|
||||
description: wiki 标题
|
||||
type: string
|
||||
url:
|
||||
description: wiki 的访问 url
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
page_token:
|
||||
description: 如果 has_more 为 true 则返回下一页的 token
|
||||
type: string
|
||||
type: object
|
||||
log_id:
|
||||
description: 链路追踪 id
|
||||
type: string
|
||||
msg:
|
||||
description: 错误描述
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 搜索 Wiki 文档列表
|
||||
servers:
|
||||
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin
|
||||
73
backend/conf/plugin/pluginproduct/library_search.yaml
Normal file
@@ -0,0 +1,73 @@
|
||||
info:
|
||||
description: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
|
||||
title: 文库搜索
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/document/coze:
|
||||
get:
|
||||
operationId: document_search
|
||||
parameters:
|
||||
- description: 用以检索的关键词
|
||||
in: query
|
||||
name: keyword
|
||||
required: true
|
||||
schema:
|
||||
description: 用以检索的关键词
|
||||
type: string
|
||||
- description: 获得的数据条数,默认10条,最大50条
|
||||
in: query
|
||||
name: number
|
||||
schema:
|
||||
description: 获得的数据条数,默认10条,最大50条
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
data:
|
||||
description: 返回的数据
|
||||
properties:
|
||||
documents:
|
||||
description: 文档数据集合
|
||||
items:
|
||||
description: 单个文档数据
|
||||
properties:
|
||||
name:
|
||||
description: 文档名称
|
||||
type: string
|
||||
precis:
|
||||
description: 文档预览
|
||||
type: string
|
||||
url:
|
||||
description: 文档链接
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- precis
|
||||
- url
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- documents
|
||||
type: object
|
||||
message:
|
||||
description: 提示信息,默认为success
|
||||
type: string
|
||||
required:
|
||||
- message
|
||||
- data
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 根据关键词检索豆柴文档
|
||||
servers:
|
||||
- url: https://www.douchai.cn
|
||||
82
backend/conf/plugin/pluginproduct/maker_smart_design.yaml
Normal file
@@ -0,0 +1,82 @@
|
||||
info:
|
||||
description: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
|
||||
title: 创客贴智能设计
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/coze:
|
||||
get:
|
||||
operationId: ckt_intelligent_design
|
||||
parameters:
|
||||
- description: 用户输入主题
|
||||
in: query
|
||||
name: query
|
||||
required: true
|
||||
schema:
|
||||
description: 用户输入主题
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
body:
|
||||
description: api调用返回消息体
|
||||
properties:
|
||||
code:
|
||||
description: api调用code码
|
||||
type: number
|
||||
data:
|
||||
description: 结果数据
|
||||
properties:
|
||||
result:
|
||||
description: 生成的设计结果集合
|
||||
items:
|
||||
properties:
|
||||
designId:
|
||||
description: 设计Id
|
||||
type: string
|
||||
imageUrl:
|
||||
description: 设计缩略图地址
|
||||
type: string
|
||||
redirectUrl:
|
||||
description: 设计编辑下载跳转地址
|
||||
type: string
|
||||
taskId:
|
||||
description: 任务Id
|
||||
type: string
|
||||
required:
|
||||
- designId
|
||||
- imageUrl
|
||||
- redirectUrl
|
||||
- taskId
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
msg:
|
||||
description: api调用返回信息
|
||||
type: string
|
||||
required:
|
||||
- code
|
||||
- msg
|
||||
type: object
|
||||
header:
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- body
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
|
||||
servers:
|
||||
- url: https://gw.chuangkit.com/openplatform/intelligentDesign
|
||||
913
backend/conf/plugin/pluginproduct/plugin_meta.yaml
Normal file
@@ -0,0 +1,913 @@
|
||||
- plugin_id: 2
|
||||
product_id: 7376228190244618278
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: library_search.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: wenkusousuo
|
||||
name_for_human: 文库搜索
|
||||
description_for_model: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
|
||||
description_for_human: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
|
||||
auth:
|
||||
type: none
|
||||
logo_url: official_plugin_icon/plugin_library_search.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
- name: X-Requested-With
|
||||
value: XMLHttpRequest
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 20001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /document/coze
|
||||
- plugin_id: 3
|
||||
product_id: 7496002227321143350
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: bocha_search.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: bochasousuo
|
||||
name_for_human: 博查搜索
|
||||
description_for_model: 从全网搜索任何网页信息和网页链接,结果准确、摘要完整,更适合AI使用。
|
||||
description_for_human: 从全网搜索任何网页信息和网页链接,结果准确、摘要完整,更适合AI使用。
|
||||
auth:
|
||||
type: service_http
|
||||
key: Authorization
|
||||
sub_type: token/api_key
|
||||
# service token apply to https://open.bochaai.com/
|
||||
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
|
||||
logo_url: official_plugin_icon/plugin_bocha_search.jpeg
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 30001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /v1/web-search
|
||||
- plugin_id: 4
|
||||
product_id: 7328314516272463923
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: wolfram_alpha.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: Wolfram_Alpha
|
||||
name_for_human: Wolfram Alpha
|
||||
description_for_model: 强大的数学工具
|
||||
description_for_human: 强大的数学工具
|
||||
auth:
|
||||
type: service_http
|
||||
key: appid
|
||||
sub_type: token/api_key
|
||||
# service token apply to https://developer.wolframalpha.com/
|
||||
payload: '{"key": "appid", "service_token": "", "location": "Query"}'
|
||||
logo_url: official_plugin_icon/plugin_wolfram_alpha.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header: [ ]
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 40001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v1/conversation.jsp
|
||||
- tool_id: 40002
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v2/query
|
||||
- plugin_id: 5
|
||||
product_id: 7351267469065011241
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: maker_smart_design.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: chuangketiezhinengsheji
|
||||
name_for_human: 创客贴智能设计
|
||||
description_for_model: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
|
||||
description_for_human: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
|
||||
auth:
|
||||
type: none
|
||||
logo_url: official_plugin_icon/plugin_maker_smart_design.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 50001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /coze
|
||||
- plugin_id: 6
|
||||
product_id: 7343894357063385100
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: sohu_hot_news.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: souhurewen
|
||||
name_for_human: 搜狐热闻
|
||||
description_for_model: 帮助用户获取搜狐网上的每日热闻
|
||||
description_for_human: 帮助用户获取搜狐网上的每日热闻
|
||||
auth:
|
||||
type: none
|
||||
logo_url: official_plugin_icon/plugin_sohu_hot_news.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 60001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /blog/outer/temp/feeds/ark
|
||||
- plugin_id: 9
|
||||
product_id: 7461926057290153993
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: image_compression.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: tupianyasuo
|
||||
name_for_human: 图片压缩
|
||||
description_for_model: 上传图片链接,返回压缩后的base64
|
||||
description_for_human: 上传图片链接,返回压缩后的base64
|
||||
auth:
|
||||
type: service_http
|
||||
key: Authorization
|
||||
sub_type: token/api_key
|
||||
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
|
||||
logo_url: official_plugin_icon/plugin_image_compression.jpeg
|
||||
api:
|
||||
type: openapi
|
||||
common_params: { }
|
||||
tools:
|
||||
- tool_id: 90001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /img2base64/img2base64
|
||||
- plugin_id: 10
|
||||
product_id: 7355060468744044595
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: worth_buying.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: shenmezhidemai
|
||||
name_for_human: 什么值得买
|
||||
description_for_model: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
|
||||
description_for_human: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
|
||||
auth:
|
||||
type: service_http
|
||||
key: token
|
||||
sub_type: token/api_key
|
||||
# service token apply to https://openapi.zhidemai.com/
|
||||
payload: '{"key": "token", "service_token": "", "location": "Query"}'
|
||||
logo_url: official_plugin_icon/plugin_worth_buying.jpeg
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 100001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /query
|
||||
- plugin_id: 11
|
||||
product_id: 7358789295274049572
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: chestnut_sign.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: banlikanban
|
||||
name_for_human: 板栗看板
|
||||
description_for_model: 任务拆解
|
||||
description_for_human: 任务拆解
|
||||
auth:
|
||||
type: none
|
||||
logo_url: official_plugin_icon/plugin_chestnut_sign.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 110001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /generate_tasks
|
||||
- plugin_id: 12
|
||||
product_id: 7407722060627247143
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: sky_eye_check.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: tianyancha
|
||||
name_for_human: 天眼查
|
||||
description_for_model: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
|
||||
description_for_human: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
|
||||
auth:
|
||||
type: service_http
|
||||
key: Authorization
|
||||
sub_type: token/api_key
|
||||
# apply token [https://open.tianyancha.com/console/mydata]
|
||||
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
|
||||
logo_url: official_plugin_icon/plugin_sky_eye_check.jpeg
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 120001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /ic/baseinfoV2/2.0
|
||||
- tool_id: 120002
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /ic/changeinfo/2.0
|
||||
- tool_id: 120003
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /mr/abnormal/2.0
|
||||
- tool_id: 120004
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /ps/news/2.0
|
||||
- tool_id: 120005
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /search/2.0
|
||||
- plugin_id: 14
|
||||
product_id: 7395041877151514662
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_authentication_authorization.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishurenzhengjishouquan
|
||||
name_for_human: 飞书认证及授权
|
||||
description_for_model: 飞书认证及授权
|
||||
description_for_human: 飞书认证及授权
|
||||
auth:
|
||||
type: none
|
||||
logo_url: official_plugin_icon/plugin_lark_authentication_authorization.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 140001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /access_token/get_tenant_access_token
|
||||
- plugin_id: 15
|
||||
product_id: 7395041302766944275
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_message.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishuxiaoxi
|
||||
name_for_human: 飞书消息
|
||||
description_for_model: '飞书消息,支持以下功能
|
||||
|
||||
|
||||
1. 使用飞书自定义机器人 webhook 发送消息;
|
||||
|
||||
2. 使用飞书应用机器人发送消息;
|
||||
|
||||
3. 获取指定单聊、群聊的消息历史;
|
||||
|
||||
4. 获取指定话题的消息历史;'
|
||||
description_for_human: '飞书消息,支持以下功能
|
||||
|
||||
|
||||
1. 使用飞书自定义机器人 webhook 发送消息;
|
||||
|
||||
2. 使用飞书应用机器人发送消息;
|
||||
|
||||
3. 获取指定单聊、群聊的消息历史;
|
||||
|
||||
4. 获取指定话题的消息历史;'
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"im:message im:message.group_msg","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_message.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 150001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /message/get_chat_messages
|
||||
- tool_id: 15002
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /message/get_thread_messages
|
||||
- tool_id: 150003
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /message/send_bot_message
|
||||
- tool_id: 150004
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /message/send_webhook_message
|
||||
- plugin_id: 16
|
||||
product_id: 7395043460165779483
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_base.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishuduoweibiaoge
|
||||
name_for_human: 飞书多维表格
|
||||
description_for_model: '飞书多维表格,支持以下功能:
|
||||
|
||||
|
||||
1. 创建多维表格;
|
||||
|
||||
2. 创建多维表格数据表;
|
||||
|
||||
3. 列出多维表格下的全部数据表;
|
||||
|
||||
4. 获取多维表格的元数据;
|
||||
|
||||
5. 在多维表格数据表中新增多条记录;
|
||||
|
||||
6. 根据 record_id 检索多维表格数据表中的记录;
|
||||
|
||||
7. 批量更新多维表格数据表中的现有记录;
|
||||
|
||||
8. 查询多维表格数据表中的记录;
|
||||
|
||||
9. 搜索多维表格类型的文档;'
|
||||
description_for_human: '飞书多维表格,支持以下功能:
|
||||
|
||||
|
||||
1. 创建多维表格;
|
||||
|
||||
2. 创建多维表格数据表;
|
||||
|
||||
3. 列出多维表格下的全部数据表;
|
||||
|
||||
4. 获取多维表格的元数据;
|
||||
|
||||
5. 在多维表格数据表中新增多条记录;
|
||||
|
||||
6. 根据 record_id 检索多维表格数据表中的记录;
|
||||
|
||||
7. 批量更新多维表格数据表中的现有记录;
|
||||
|
||||
8. 查询多维表格数据表中的记录;
|
||||
|
||||
9. 搜索多维表格类型的文档;'
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"bitable:app","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_base.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
- name: x-use-ppe
|
||||
value: '1'
|
||||
- name: x-tt-env
|
||||
value: ppe_lark_plugin_coze
|
||||
tools:
|
||||
- tool_id: 160001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/add_field
|
||||
- tool_id: 160002
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/add_records
|
||||
- tool_id: 160003
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/create_base
|
||||
- tool_id: 160004
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/create_table
|
||||
- tool_id: 160005
|
||||
deprecated: false
|
||||
method: delete
|
||||
sub_url: /base/delete_field
|
||||
- tool_id: 160006
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/delete_records
|
||||
- tool_id: 160007
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/delete_tables
|
||||
- tool_id: 160008
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /base/get_base_info
|
||||
- tool_id: 160009
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /base/list_fields
|
||||
- tool_id: 160010
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /base/list_tables
|
||||
- tool_id: 160011
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/search_base
|
||||
- tool_id: 160012
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/search_record
|
||||
- tool_id: 160013
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/update_field
|
||||
- tool_id: 160014
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /base/update_records
|
||||
- plugin_id: 17
|
||||
product_id: 7395040352337559578
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_sheet.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishudianzibiaoge
|
||||
name_for_human: 飞书电子表格
|
||||
description_for_model: '对飞书电子表格做操作,包含以下操作:
|
||||
|
||||
1.创建电子表格;
|
||||
|
||||
2.新增多行至工作表;
|
||||
|
||||
3.新增多列至工作表;
|
||||
|
||||
4.搜索电子表格类型文档;
|
||||
|
||||
5.获取电子表格信息;
|
||||
|
||||
6.获取所有工作表;
|
||||
|
||||
7.读取工作表行列内容;'
|
||||
description_for_human: '对飞书电子表格做操作,包含以下操作:
|
||||
|
||||
1.创建电子表格;
|
||||
|
||||
2.新增多行至工作表;
|
||||
|
||||
3.新增多列至工作表;
|
||||
|
||||
4.搜索电子表格类型文档;
|
||||
|
||||
5.获取电子表格信息;
|
||||
|
||||
6.获取所有工作表;
|
||||
|
||||
7.读取工作表行列内容;'
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"drive:drive","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_sheet.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
tools:
|
||||
- tool_id: 170001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /spreadsheet/add_cols
|
||||
- tool_id: 170002
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /spreadsheet/add_rows
|
||||
- tool_id: 170003
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /spreadsheet/create_spreadsheet
|
||||
- tool_id: 170004
|
||||
deprecated: false
|
||||
method: delete
|
||||
sub_url: /spreadsheet/delete_cols
|
||||
- tool_id: 170005
|
||||
deprecated: false
|
||||
method: delete
|
||||
sub_url: /spreadsheet/delete_rows
|
||||
- tool_id: 170006
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /spreadsheet/get_spreadsheet
|
||||
- tool_id: 170007
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /spreadsheet/list_spreadsheet_sheets
|
||||
- tool_id: 170008
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /spreadsheet/read_cols
|
||||
- tool_id: 170009
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /spreadsheet/read_rows
|
||||
- tool_id: 170010
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /spreadsheet/read_table
|
||||
- tool_id: 170011
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /spreadsheet/search_spreadsheet
|
||||
- plugin_id: 18
|
||||
product_id: 7395041172152156186
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_task.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishurenwu
|
||||
name_for_human: 飞书任务
|
||||
description_for_model: '调用飞书开放平台任务相关API,支持以下操作:
|
||||
|
||||
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
|
||||
|
||||
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
|
||||
|
||||
3.删除任务:对创建的飞书任务做删除;
|
||||
|
||||
4.列出所有任务:查询用户下单所有飞书任务;'
|
||||
description_for_human: '调用飞书开放平台任务相关API,支持以下操作:
|
||||
|
||||
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
|
||||
|
||||
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
|
||||
|
||||
3.删除任务:对创建的飞书任务做删除;
|
||||
|
||||
4.列出所有任务:查询用户下单所有飞书任务;'
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"task:task:write","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_task.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
tools:
|
||||
- tool_id: 180001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /task/create_task
|
||||
- tool_id: 180002
|
||||
deprecated: false
|
||||
method: delete
|
||||
sub_url: /task/delete_task
|
||||
- tool_id: 180003
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /task/list_tasks
|
||||
- tool_id: 180004
|
||||
deprecated: false
|
||||
method: patch
|
||||
sub_url: /task/update_task
|
||||
- plugin_id: 19
|
||||
product_id: 7395041536909574154
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_docx.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishuyunwendang
|
||||
name_for_human: 飞书云文档
|
||||
description_for_model: '飞书云文档,支持以下操作:
|
||||
|
||||
|
||||
1. 创建文档;
|
||||
|
||||
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
|
||||
|
||||
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
|
||||
|
||||
4. 获取文档的所有块;
|
||||
|
||||
5. 获取文档的基本信息;
|
||||
|
||||
6. 搜索文档类型的文档;
|
||||
|
||||
7. 搜索 PPT 类型的文档;'
|
||||
description_for_human: '飞书云文档,支持以下操作:
|
||||
|
||||
|
||||
1. 创建文档;
|
||||
|
||||
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
|
||||
|
||||
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
|
||||
|
||||
4. 获取文档的所有块;
|
||||
|
||||
5. 获取文档的基本信息;
|
||||
|
||||
6. 搜索文档类型的文档;
|
||||
|
||||
7. 搜索 PPT 类型的文档;'
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"drive:drive","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_docx.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
tools:
|
||||
- tool_id: 190001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /document/create_document
|
||||
- tool_id: 190002
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /document/get_document_content
|
||||
- tool_id: 190003
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /document/get_document_info
|
||||
- tool_id: 190004
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /document/list_document_blocks
|
||||
- tool_id: 190005
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /document/search_document
|
||||
- tool_id: 190006
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /document/search_slides
|
||||
- tool_id: 190007
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /document/write_document
|
||||
- tool_id: 190008
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /drive/download_media
|
||||
- tool_id: 190009
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /drive/upload_media
|
||||
- plugin_id: 20
|
||||
product_id: 7408195262340104230
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_wiki.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishuzhishiku
|
||||
name_for_human: 飞书知识库
|
||||
description_for_model: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
|
||||
description_for_human: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"wiki:wiki","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_wiki.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
tools:
|
||||
- tool_id: 200001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /wiki/search_wiki
|
||||
- plugin_id: 21
|
||||
product_id: 7395041856574423075
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: lark_calendar.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: feishurili
|
||||
name_for_human: 飞书日历
|
||||
description_for_model: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
|
||||
description_for_human: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
|
||||
auth:
|
||||
type: oauth
|
||||
sub_type: authorization_code
|
||||
# client_id and client_secret apply to https://open.larkoffice.com/app
|
||||
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"calendar:calendar calendar:calendar:read","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
|
||||
logo_url: official_plugin_icon/plugin_lark_calendar.png
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
tools:
|
||||
- tool_id: 210001
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /calendar/create_event
|
||||
- tool_id: 210002
|
||||
deprecated: false
|
||||
method: delete
|
||||
sub_url: /calendar/delete_event/{event_id}
|
||||
- tool_id: 210003
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /calendar/get_primary_calendar
|
||||
- tool_id: 210004
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /calendar/list_events
|
||||
- tool_id: 210005
|
||||
deprecated: false
|
||||
method: post
|
||||
sub_url: /calendar/search_events
|
||||
- tool_id: 210006
|
||||
deprecated: false
|
||||
method: patch
|
||||
sub_url: /calendar/update_event/{event_id}
|
||||
- plugin_id: 22
|
||||
product_id: 7379953949534715956
|
||||
deprecated: false
|
||||
version: v1.0.0
|
||||
openapi_doc_file: gaode_map.yaml
|
||||
plugin_type: 1
|
||||
manifest:
|
||||
schema_version: v1
|
||||
name_for_model: gaodedetu
|
||||
name_for_human: 高德地图
|
||||
description_for_model: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
|
||||
description_for_human: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
|
||||
logo_url: official_plugin_icon/plugin_gaode_map.jpeg
|
||||
api:
|
||||
type: openapi
|
||||
common_params:
|
||||
path: [ ]
|
||||
query: [ ]
|
||||
body: [ ]
|
||||
header:
|
||||
- name: User-Agent
|
||||
value: Coze/1.0
|
||||
auth:
|
||||
type: service_http
|
||||
key: Authorization
|
||||
sub_type: token/api_key
|
||||
payload: '{"key": "key", "service_token": "", "location": "Query"}' # apply token on the Gaode Open Platform(https://lbs.amap.com/api).
|
||||
tools:
|
||||
- tool_id: 220001
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v3/geocode/geo
|
||||
- tool_id: 220002
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v3/ip
|
||||
- tool_id: 220003
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v3/geocode/regeo
|
||||
- tool_id: 220004
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/direction/bicycling
|
||||
- tool_id: 220005
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/direction/driving
|
||||
- tool_id: 220006
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/direction/electrobike
|
||||
- tool_id: 220007
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/direction/transit/integrated
|
||||
- tool_id: 220008
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/direction/walking
|
||||
- tool_id: 220009
|
||||
deprecated: false
|
||||
method: get
|
||||
sub_url: /v5/place/around
|
||||
431
backend/conf/plugin/pluginproduct/sky_eye_check.yaml
Normal file
@@ -0,0 +1,431 @@
|
||||
info:
|
||||
description: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
|
||||
title: 天眼查
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/ic/baseinfoV2/2.0:
|
||||
get:
|
||||
operationId: company_detail
|
||||
parameters:
|
||||
- description: 搜索关键字(公司名称、公司id、注册号或社会统一信用代码)
|
||||
in: query
|
||||
name: keyword
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
error_code:
|
||||
type: number
|
||||
reason:
|
||||
type: string
|
||||
result:
|
||||
properties:
|
||||
actualCapital:
|
||||
type: string
|
||||
actualCapitalCurrency:
|
||||
type: string
|
||||
alias:
|
||||
type: string
|
||||
approvedTime:
|
||||
type: number
|
||||
base:
|
||||
type: string
|
||||
bondName:
|
||||
type: string
|
||||
bondNum:
|
||||
type: string
|
||||
bondType:
|
||||
type: string
|
||||
businessScope:
|
||||
type: string
|
||||
cancelDate:
|
||||
type: integer
|
||||
cancelReason:
|
||||
type: string
|
||||
city:
|
||||
type: string
|
||||
companyOrgType:
|
||||
type: string
|
||||
creditCode:
|
||||
type: string
|
||||
district:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
estiblishTime:
|
||||
type: number
|
||||
fromTime:
|
||||
type: number
|
||||
historyNameList:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
historyNames:
|
||||
type: string
|
||||
id:
|
||||
type: number
|
||||
industry:
|
||||
type: string
|
||||
industryAll:
|
||||
properties:
|
||||
category:
|
||||
type: string
|
||||
categoryBig:
|
||||
type: string
|
||||
categoryMiddle:
|
||||
type: string
|
||||
categorySmall:
|
||||
type: string
|
||||
type: object
|
||||
isMicroEnt:
|
||||
type: number
|
||||
legalPersonName:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
orgNumber:
|
||||
type: string
|
||||
percentileScore:
|
||||
type: number
|
||||
phoneNumber:
|
||||
type: string
|
||||
property3:
|
||||
type: string
|
||||
regCapital:
|
||||
type: string
|
||||
regCapitalCurrency:
|
||||
type: string
|
||||
regInstitute:
|
||||
type: string
|
||||
regLocation:
|
||||
type: string
|
||||
regNumber:
|
||||
type: string
|
||||
regStatus:
|
||||
type: string
|
||||
revokeDate:
|
||||
type: integer
|
||||
revokeReason:
|
||||
type: string
|
||||
socialStaffNum:
|
||||
type: number
|
||||
staffNumRange:
|
||||
type: string
|
||||
tags:
|
||||
type: string
|
||||
taxNumber:
|
||||
type: string
|
||||
toTime:
|
||||
type: integer
|
||||
type:
|
||||
type: number
|
||||
updateTimes:
|
||||
type: number
|
||||
usedBondName:
|
||||
type: string
|
||||
websiteList:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 可以通过公司名称(需公司全称)或ID获取企业基本信息和企业联系方式,包括公司名称或ID、类型、成立日期、电话、邮箱、网址等字段的详细信息。
|
||||
/ic/changeinfo/2.0:
|
||||
get:
|
||||
operationId: change_log
|
||||
parameters:
|
||||
- description: 搜索关键字(公司名称、公司id、注册号或社会统一信用代码)
|
||||
in: query
|
||||
name: keyword
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 当前页数(默认第1页)
|
||||
in: query
|
||||
name: pageNum
|
||||
schema:
|
||||
type: integer
|
||||
- description: 每页条数(默认20条,最大20条)
|
||||
in: query
|
||||
name: pageSize
|
||||
schema:
|
||||
type: integer
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
error_code:
|
||||
type: number
|
||||
reason:
|
||||
type: string
|
||||
result:
|
||||
properties:
|
||||
items:
|
||||
items:
|
||||
properties:
|
||||
changeItem:
|
||||
type: string
|
||||
changeTime:
|
||||
type: string
|
||||
contentAfter:
|
||||
type: string
|
||||
contentBefore:
|
||||
type: string
|
||||
createTime:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
total:
|
||||
type: number
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 可以通过公司名称(需公司全称)或ID获取企业变更记录,变更记录包括工商变更事项、变更前后信息等字段的详细信息。
|
||||
/mr/abnormal/2.0:
|
||||
get:
|
||||
operationId: abnormal_operation
|
||||
parameters:
|
||||
- description: "String\t搜索关键字(公司名称、公司id、注册号或社会统一信用代码)"
|
||||
in: query
|
||||
name: keyword
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 每页条数(默认20条,最大20条)
|
||||
in: query
|
||||
name: pageSize
|
||||
schema:
|
||||
type: integer
|
||||
- description: 当前页数(默认第1页)
|
||||
in: query
|
||||
name: pageNum
|
||||
schema:
|
||||
type: integer
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
error_code:
|
||||
type: number
|
||||
reason:
|
||||
type: string
|
||||
result:
|
||||
properties:
|
||||
items:
|
||||
items:
|
||||
properties:
|
||||
putDate:
|
||||
type: string
|
||||
putDepartment:
|
||||
type: string
|
||||
putReason:
|
||||
type: string
|
||||
removeDate:
|
||||
type: string
|
||||
removeDepartment:
|
||||
type: string
|
||||
removeReason:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
total:
|
||||
type: number
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 可以通过公司名称(需公司全称)或ID获取企业经营异常信息,经营异常信息包括列入/移除原因、时间、做出决定机关等字段的详细信息。
|
||||
/ps/news/2.0:
|
||||
get:
|
||||
operationId: news
|
||||
parameters:
|
||||
- description: 公司名称(精确匹配、name和id其一为必填即可)
|
||||
in: query
|
||||
name: name
|
||||
schema:
|
||||
type: string
|
||||
- description: 每页条数(默认20条,最大20条)
|
||||
in: query
|
||||
name: pageSize
|
||||
schema:
|
||||
type: integer
|
||||
- description: 开始时间
|
||||
in: query
|
||||
name: startTime
|
||||
schema:
|
||||
type: string
|
||||
- description: 公司id(name和id其一为必填即可)
|
||||
in: query
|
||||
name: id
|
||||
schema:
|
||||
type: integer
|
||||
- description: 结束时间
|
||||
in: query
|
||||
name: endTime
|
||||
schema:
|
||||
type: string
|
||||
- description: 当前页数(默认第1页)
|
||||
in: query
|
||||
name: pageNum
|
||||
schema:
|
||||
type: integer
|
||||
- description: 标签(多个逗号分隔,默认返回全部)
|
||||
in: query
|
||||
name: tags
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
error_code:
|
||||
type: number
|
||||
reason:
|
||||
type: string
|
||||
result:
|
||||
properties:
|
||||
items:
|
||||
items:
|
||||
properties:
|
||||
abstracts:
|
||||
type: string
|
||||
docid:
|
||||
type: string
|
||||
emotion:
|
||||
type: number
|
||||
rtm:
|
||||
type: number
|
||||
tags:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
title:
|
||||
type: string
|
||||
uri:
|
||||
type: string
|
||||
website:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
total:
|
||||
type: number
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 可以通过公司名称(需公司全称)或ID精确匹配获取新闻列表。
|
||||
/search/2.0:
|
||||
get:
|
||||
operationId: search
|
||||
parameters:
|
||||
- description: 关键词
|
||||
in: query
|
||||
name: word
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 每页条数(默认20条,最大20条)
|
||||
in: query
|
||||
name: pageSize
|
||||
schema:
|
||||
type: integer
|
||||
- description: 当前页数(默认第1页)
|
||||
in: query
|
||||
name: pageNum
|
||||
schema:
|
||||
type: integer
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
error_code:
|
||||
type: number
|
||||
reason:
|
||||
type: string
|
||||
result:
|
||||
properties:
|
||||
items:
|
||||
items:
|
||||
properties:
|
||||
base:
|
||||
type: string
|
||||
companyType:
|
||||
type: number
|
||||
creditCode:
|
||||
type: string
|
||||
estiblishTime:
|
||||
type: string
|
||||
id:
|
||||
type: number
|
||||
legalPersonName:
|
||||
type: string
|
||||
matchType:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
orgNumber:
|
||||
type: string
|
||||
regCapital:
|
||||
type: string
|
||||
regNumber:
|
||||
type: string
|
||||
regStatus:
|
||||
type: string
|
||||
type:
|
||||
type: number
|
||||
type: object
|
||||
type: array
|
||||
total:
|
||||
type: number
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 可以通过关键词获取企业列表,企业列表包括公司名称或ID、类型、成立日期、经营状态、统一社会信用代码等字段的详细信息。
|
||||
servers:
|
||||
- url: https://open.api.tianyancha.com/services/open
|
||||
69
backend/conf/plugin/pluginproduct/sohu_hot_news.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
info:
|
||||
description: 帮助用户获取搜狐网上的每日热闻
|
||||
title: 搜狐热闻
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/blog/outer/temp/feeds/ark:
|
||||
get:
|
||||
operationId: top_news
|
||||
parameters:
|
||||
- description: 获取新闻条数
|
||||
in: query
|
||||
name: count
|
||||
required: true
|
||||
schema:
|
||||
description: 获取新闻条数
|
||||
type: integer
|
||||
- description: 搜索关键词
|
||||
in: query
|
||||
name: q
|
||||
schema:
|
||||
description: 搜索关键词
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: new desc
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
code:
|
||||
type: number
|
||||
data:
|
||||
properties:
|
||||
coze_ark_001:
|
||||
properties:
|
||||
list:
|
||||
items:
|
||||
properties:
|
||||
brief:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
url:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
message:
|
||||
type: string
|
||||
success:
|
||||
type: boolean
|
||||
total:
|
||||
type: number
|
||||
traceId:
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 帮助用户获取搜狐网上的每日热闻
|
||||
servers:
|
||||
- url: https://uis.mp.sohu.com
|
||||
100
backend/conf/plugin/pluginproduct/wolfram_alpha.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
info:
|
||||
description: 强大的数学工具
|
||||
title: Wolfram Alpha
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/v1/conversation.jsp:
|
||||
get:
|
||||
operationId: query
|
||||
parameters:
|
||||
- description: '数学表达式,需要转成英文,不接受与数学无关的问题 '
|
||||
in: query
|
||||
name: i
|
||||
schema:
|
||||
description: '数学表达式,需要转成英文,不接受与数学无关的问题 '
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
conversationID:
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
host:
|
||||
type: string
|
||||
result:
|
||||
type: string
|
||||
type: object
|
||||
description:
|
||||
""
|
||||
summary: 计算数学表达式的结果
|
||||
/v2/query:
|
||||
get:
|
||||
operationId: calculate
|
||||
parameters:
|
||||
- description: 输入一个数学表达式。如果输入不是英文,请先将其翻译成英文。
|
||||
in: query
|
||||
name: input
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 返回数据格式仅支持json。
|
||||
in: query
|
||||
name: output
|
||||
schema:
|
||||
default: json
|
||||
type: string
|
||||
x-global-disable: true
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
queryresult:
|
||||
properties:
|
||||
inputstring:
|
||||
type: string
|
||||
pods:
|
||||
items:
|
||||
properties:
|
||||
subpods:
|
||||
items:
|
||||
properties:
|
||||
img:
|
||||
properties:
|
||||
src:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
type: object
|
||||
plaintext:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
title:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 逐步计算数学表达式。
|
||||
servers:
|
||||
- url: https://api.wolframalpha.com
|
||||
77
backend/conf/plugin/pluginproduct/worth_buying.yaml
Normal file
@@ -0,0 +1,77 @@
|
||||
info:
|
||||
description: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
|
||||
title: 什么值得买
|
||||
version: v1
|
||||
openapi: 3.0.1
|
||||
paths:
|
||||
/query:
|
||||
get:
|
||||
operationId: smzdm_haojia_articles
|
||||
parameters:
|
||||
- description: 搜索词,商品的品类词、品牌词、型号词等,如手机、iPhone、iphone15
|
||||
in: query
|
||||
name: Query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- description: 最低价,如“1000”,“1500”
|
||||
in: query
|
||||
name: min_price
|
||||
schema:
|
||||
type: string
|
||||
- description: 最高价,如“5000”,“5500”
|
||||
in: query
|
||||
name: max_price
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
Content:
|
||||
description: 总结
|
||||
type: string
|
||||
Content_source:
|
||||
description: 商品列表
|
||||
items:
|
||||
properties:
|
||||
coin_unit:
|
||||
description: 价格的单位
|
||||
type: string
|
||||
desc:
|
||||
description: 商品描述
|
||||
type: string
|
||||
digital_price:
|
||||
description: 价格的数字
|
||||
type: string
|
||||
focus_pic_url:
|
||||
description: 商品图
|
||||
type: string
|
||||
subtitle:
|
||||
description: 价格描述,如”2178.01元包邮(双重优惠)“,”299元“
|
||||
type: string
|
||||
title:
|
||||
description: 商品标题
|
||||
type: string
|
||||
url:
|
||||
description: 购买链接
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
Query:
|
||||
description: 关键词
|
||||
type: string
|
||||
type: object
|
||||
description: new desc
|
||||
default:
|
||||
description: ""
|
||||
summary: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址
|
||||
servers:
|
||||
- url: https://open.smzdm.com/byte/coze
|
||||
10
backend/conf/prompt/messages_to_query_template_jinja2.json
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "# Role:\n\nYou are a professional query reformulation engineer skilled in rewriting queries based on the context information provided by users, making them clearer, more complete, and aligned with the user's intent.You should reply in the same language as the user's input.\n\n## Output Format:\n\nThe output should be the reformulated query, formatted as plain text.\n\n\n## Example:\nExample 1:\nInput:\n[\n {\n \"role\": \"user\",\n \"content\": \"Where is the largest desert in the world?\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"The largest desert in the world is the Sahara Desert.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"How to get there?\"\n }\n]\nOutput: How to get to the Sahara Desert?\n\nExample 2:\nInput:\n[\n {\n \"role\": \"user\",\n \"content\": \"Analyze the impact of current internet celebrities deceiving the public to earn traffic on today's society.\"\n }\n]\nOutput: Current internet celebrities deceive the public to earn traffic. Analyze the impact of this phenomenon on today's society.\n"
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "{{messages}}"
|
||||
}
|
||||
]
|
||||
10
backend/conf/prompt/nl2sql_template_jinja2.json
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "# Role: NL2SQL Consultant\n\n## Goals\nTranslate natural language statements into SQL queries in MySQL standard. Follow the Constraints and return only a JSON always.\n\n## Format\n- JSON format only. JSON contains field \"sql\" for generated SQL, filed \"err_code\" for reason type, field \"err_msg\" for detail reason (prefer more than 10 words)\n- Don't use \"```json\" markdown format\n\n## Skills\n- Good at Translate natural language statements into SQL queries in MySQL standard.\n\n## Define\n\"err_code\" Reason Type Define:\n- 0 means you generated a SQL\n- 3002 means you cannot generate a SQL because of timeout\n- 3003 means you cannot generate a SQL because of table schema missing\n- 3005 means you cannot generate a SQL because of some term is ambiguous\n\n## Example\nQ: Help me implement NL2SQL.\n.table schema description: CREATE TABLE `sales_records` (\\n `sales_id` bigint(20) unsigned NOT NULL COMMENT 'id of sales person',\\n `product_id` bigint(64) COMMENT 'id of product',\\n `sale_date` datetime(3) COMMENT 'sold date and time',\\n `quantity_sold` int(11) COMMENT 'sold amount',\\n PRIMARY KEY (`sales_id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='销售记录表';\n.natural language description of the SQL requirement: 查询上月的销量总额第一名的销售员和他的销售总额\nA: {\n \"sql\":\"SELECT sales_id, SUM(quantity_sold) AS total_sales FROM sales_records WHERE MONTH(sale_date) = MONTH(CURRENT_DATE - INTERVAL 1 MONTH) AND YEAR(sale_date) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH) GROUP BY sales_id ORDER BY total_sales DESC LIMIT 1\",\n \"err_code\":0,\n \"err_msg\":\"SQL query generated successfully\"\n}"
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "help me implement NL2SQL.\ntable schema description:{{table_schema}}\nnatural language description of the SQL requirement: {{messages}}."
|
||||
}
|
||||
]
|
||||