mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
* add conversation expire config * add user query text to card * fix(pipeline): move session limit to AI config * test(pipeline): cover AI session limit config * refactor(pipeline): merge session expire-time into AI runner stage Move the session validity duration field out of the standalone session-limit stage into the runner stage so it actually renders in the AI tab (the tab only shows the runner stage and the stage matching the selected runner — any other stage is filtered out). Read path, default config, metadata description, and tests updated accordingly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(pipeline): expire conversations from last update time * fix(n8n): sync generated conversation id into payload --------- Co-authored-by: RockChinQ <rockchinq@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
113 lines
2.9 KiB
JSON
113 lines
2.9 KiB
JSON
{
|
|
"trigger": {
|
|
"group-respond-rules": {
|
|
"at": true,
|
|
"prefix": [
|
|
"ai"
|
|
],
|
|
"regexp": [],
|
|
"random": 0.0
|
|
},
|
|
"access-control": {
|
|
"mode": "blacklist",
|
|
"blacklist": [],
|
|
"whitelist": []
|
|
},
|
|
"ignore-rules": {
|
|
"prefix": [],
|
|
"regexp": []
|
|
},
|
|
"message-aggregation": {
|
|
"enabled": false,
|
|
"delay": 1.5
|
|
},
|
|
"misc": {
|
|
"combine-quote-message": true
|
|
}
|
|
},
|
|
"safety": {
|
|
"content-filter": {
|
|
"scope": "all",
|
|
"check-sensitive-words": true
|
|
},
|
|
"rate-limit": {
|
|
"window-length": 60,
|
|
"limitation": 60,
|
|
"strategy": "drop"
|
|
}
|
|
},
|
|
"ai": {
|
|
"runner": {
|
|
"runner": "local-agent",
|
|
"expire-time": 0
|
|
},
|
|
"local-agent": {
|
|
"model": {
|
|
"primary": "",
|
|
"fallbacks": []
|
|
},
|
|
"max-round": 10,
|
|
"prompt": [
|
|
{
|
|
"role": "system",
|
|
"content": "You are a helpful assistant."
|
|
}
|
|
],
|
|
"knowledge-bases": [],
|
|
"rerank-model": "",
|
|
"rerank-top-k": 5
|
|
},
|
|
"dify-service-api": {
|
|
"base-url": "https://api.dify.ai/v1",
|
|
"app-type": "chat",
|
|
"api-key": "your-api-key",
|
|
"timeout": 30
|
|
},
|
|
"dashscope-app-api": {
|
|
"app-type": "agent",
|
|
"api-key": "your-api-key",
|
|
"app-id": "your-app-id",
|
|
"references-quote": "参考资料来自:"
|
|
},
|
|
"n8n-service-api": {
|
|
"webhook-url": "http://your-n8n-webhook-url",
|
|
"auth-type": "none",
|
|
"basic-username": "",
|
|
"basic-password": "",
|
|
"jwt-secret": "",
|
|
"jwt-algorithm": "HS256",
|
|
"header-name": "",
|
|
"header-value": "",
|
|
"timeout": 120,
|
|
"output-key": "response"
|
|
},
|
|
"langflow-api": {
|
|
"base-url": "http://localhost:7860",
|
|
"api-key": "your-api-key",
|
|
"flow-id": "your-flow-id",
|
|
"input-type": "chat",
|
|
"output-type": "chat",
|
|
"tweaks": "{}"
|
|
}
|
|
},
|
|
"output": {
|
|
"long-text-processing": {
|
|
"threshold": 1000,
|
|
"strategy": "none",
|
|
"font-path": ""
|
|
},
|
|
"force-delay": {
|
|
"min": 0,
|
|
"max": 0
|
|
},
|
|
"misc": {
|
|
"exception-handling": "show-hint",
|
|
"failure-hint": "Request failed.",
|
|
"at-sender": true,
|
|
"quote-origin": true,
|
|
"track-function-calls": false,
|
|
"remove-think": false
|
|
}
|
|
}
|
|
}
|