73 lines
5.6 KiB
YAML
73 lines
5.6 KiB
YAML
# 服务器配置
|
||
server:
|
||
port: 8090
|
||
host: "0.0.0.0"
|
||
|
||
ollama:
|
||
base_url: "http://127.0.0.1:11434"
|
||
model: "qwen3-coder:480b-cloud"
|
||
generate_model: "qwen3-coder:480b-cloud"
|
||
vl_model: "qwen2.5vl:3b"
|
||
timeout: "120s"
|
||
level: "info"
|
||
format: "json"
|
||
|
||
|
||
|
||
sys:
|
||
session_len: 6
|
||
channel_pool_len: 100
|
||
channel_pool_size: 32
|
||
llm_pool_len: 5
|
||
redis:
|
||
host: 47.97.27.195:6379
|
||
type: node
|
||
pass: lansexiongdi@666
|
||
key: report-api-test
|
||
pollSize: 5 #连接池大小,不配置,或配置为0表示不启用连接池
|
||
minIdleConns: 2 #最小空闲连接数
|
||
maxIdleTime: 30 #每个连接最大空闲时间,如果超过了这个时间会被关闭
|
||
tls: 30
|
||
db:
|
||
db:
|
||
driver: mysql
|
||
source: root:SD###sdf323r343@tcp(121.199.38.107:3306)/sys_ai?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
|
||
|
||
tools:
|
||
zltxOrderDetail:
|
||
enabled: true
|
||
base_url: "https://revcl.1688sup.com/api/admin/direct/ai/%s"
|
||
add_url: "https://revcl.1688sup.com/api/admin/direct/log/%s/%s"
|
||
api_key: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyQ2VudGVyIiwiZXhwIjoxNzU4MDkxOTU4LCJuYmYiOjE3NTgwOTAxNTgsImp0aSI6IjEiLCJQaG9uZSI6IjE4MDAwMDAwMDAwIiwiVXNlck5hbWUiOiJsc3hkIiwiUmVhbE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJBY2NvdW50VHlwZSI6MSwiR3JvdXBDb2RlcyI6IlZDTF9DQVNISUVSLFZDTF9PUEVSQVRFLFZDTF9BRE1JTixWQ0xfQUFBLFZDTF9WQ0xfT1BFUkFULFZDTF9JTlZPSUNFLENSTV9BRE1JTixMSUFOTElBTl9BRE1JTixNQVJLRVRNQUcyX0FETUlOLFBIT05FQklMTF9BRE1JTixRSUFOWkhVX1NVUFBFUl9BRE0sTUFSS0VUSU5HU0FBU19TVVBFUkFETUlOLENBUkRfQ09ERSxDQVJEX1BST0NVUkVNRU5ULE1BUktFVElOR1NZU1RFTV9TVVBFUixTVEFUSVNUSUNBTFNZU1RFTV9BRE1JTixaTFRYX0FETUlOLFpMVFhfT1BFUkFURSIsIkRpbmdVc2VySWQiOiIxNjIwMjYxMjMwMjg5MzM4MzQifQ.Bjsx9f8yfcrV9EWxb0n6POwnXVOq9XPRD78JFZnnf1_VAVMN78W4W570SZL27PWuDnkD7E4oUg6RzeZwZgl7BZrNpNr-a-QpNC5qCptqrqXeNfVStmX7pxWA8GqnzI8ybkZgbhQ58Gje7DzdJtBq_8zte_LDaYhTYXdIc5EAG0AbCzAk22nPTl47nkMeHtmisXQVLEsdibl1hW3ViFJlXwfXvUrOENItmL1_mRYkggUB0MaTu2nHJOYM6PaOVGLHx-74eepnmK2rm6konFEb6ed-Ukc6gVR-nM9yWZaYLYNGNKJLwZoCX3tRuerq74n4kzQgWmUEJeaVI1yIGSw1zw"
|
||
zltxProduct:
|
||
enabled: true
|
||
base_url: "https://revcl.1688sup.com/api/admin/oursProduct"
|
||
add_url: "https://revcl.1688sup.com/api/admin/platformProduct/getProductsByOfficialProductId"
|
||
api_key: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyQ2VudGVyIiwiZXhwIjoxNzU2MTgyNTM1LCJuYmYiOjE3NTYxODA3MzUsImp0aSI6IjEiLCJQaG9uZSI6IjE4MDAwMDAwMDAwIiwiVXNlck5hbWUiOiJsc3hkIiwiUmVhbE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJBY2NvdW50VHlwZSI6MSwiR3JvdXBDb2RlcyI6IlZDTF9DQVNISUVSLFZDTF9PUEVSQVRFLFZDTF9BRE1J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FZDTF9BRE1JTixWQ0xfQUFBLFZDTF9WQ0xfT1BFUkFULFZDTF9JTlZPSUNFLENSTV9BRE1JTixMSUFOTElBTl9BRE1JTixNQVJLRVRNQUcyX0FETUlOLFBIT05FQklMTF9BRE1JTixRSUFOWkhVX1NVUFBFUl9BRE0sTUFSS0VUSU5HU0FBU19TVVBFUkFETUlOLENBUkRfQ09ERSxDQVJEX1BST0NVUkVNRU5ULE1BUktFVElOR1NZU1RFTV9TVVBFUixTVEFUSVNUSUNBTFNZU1RFTV9BRE1JTixaTFRYX0FETUlOLFpMVFhfT1BFUkFURSIsIkRpbmdVc2VySWQiOiIxNjIwMjYxMjMwMjg5MzM4MzQifQ.N1xv1PYbcO8_jR5adaczc16YzGsr4z101gwEZdulkRaREBJNYTOnFrvRxTFx3RJTooXsqTqroE1MR84v_1WPX6BS6kKonA-kC1Jgot6yrt5rFWhGNGb2Cpr9rKIFCCQYmiGd3AUgDazEeaQ0_sodv3E-EXg9VfE1SX8nMcck9Yjnc8NCy7RTWaBIaSeOdZcEl-JfCD0S6GSx3oErp_hk-U9FKGwf60wAuDGTY1R0BP4BYpcEqS-C2LSnsSGyURi54Cuk5xH8r1WuF0Dm5bwAj5d7Hvs77-N_sUF-C5ONqyZJRAEhYLgcmN9RX_WQZfizdQJxizlTczdpzYfy-v-1eQ"
|
||
knowledge:
|
||
base_url: "http://117.175.169.61:10000"
|
||
enabled: true
|
||
DingTalkBot:
|
||
enabled: true
|
||
|
||
|
||
default_prompt:
|
||
img_recognize:
|
||
system_prompt:
|
||
'你是一个具备图像理解与用户意图分析能力的智能助手。当用户提供一张图片时,请完成以下任务:
|
||
1.图像内容识别:
|
||
识别并描述图片中的主要对象、场景、文字(如存在)、颜色、布局等基本信息。
|
||
如果图片中包含表格、图表、二维码、标志(Logo)、菜单、票据等内容,请特别指出。
|
||
2. 关键信息提取:
|
||
提取出图片中对用户可能有用的关键信息(例如金额、日期、标题、编号、联系信息、商品名称等)。
|
||
若图片为文档类(如合同、发票、收据),请结构化输出关键字段(如客户名称、金额、开票日期等)。
|
||
3.用户需求预测:
|
||
根据图片内容和常见使用场景,推测用户可能想要执行的操作或提出的问题。
|
||
例如:是否需要翻译图片中的文字?是否需要提取表格数据?是否需要分析图表趋势?是否需要识别某个标志的含义?
|
||
输出你预测的 2~3 个用户可能的需求,并简要说明理由。
|
||
'
|
||
user_prompt: '识别图片内容, 以markdown格式输出' |