This commit is contained in:
Your Name
2026-11-26 15:46:20 +08:00
parent db6d327e91
commit be79e09c83
170 changed files with 21159 additions and 13217 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ return [
'alert_enabled' => filter_var(env('assistant_service.ALERT_ENABLED', false), FILTER_VALIDATE_BOOLEAN),
'alert_interval_seconds' => max(5, min(3600, (int) env('assistant_service.ALERT_INTERVAL_SECONDS', 60))),
'alert_batch_size' => max(1, min(500, (int) env('assistant_service.ALERT_BATCH_SIZE', 200))),
// 企微客服归档(im.zhenyangtang.cn)。只拉员工发出且已绑定患者的文字。
// 医助工作台归档和员工预警。对接配置见 server/docs/wecom-archive.md。
// 每个业务实例只关联一个归档租户;该租户的患者 ID 必须来自本实例。
'wecom_archive_tenant' => (string) env('assistant_service.WECOM_ARCHIVE_TENANT', ''),
'wecom_archive_sqlite' => (string) env('assistant_service.WECOM_ARCHIVE_SQLITE', ''),
'wecom_archive_base_url' => rtrim((string) env('assistant_service.WECOM_ARCHIVE_BASE_URL', ''), '/'),
'wecom_archive_token' => (string) env('assistant_service.WECOM_ARCHIVE_TOKEN', ''),
+1
View File
@@ -5,6 +5,7 @@
return [
// 指令定义
'commands' => [
'desktop-session:settle' => 'app\\command\\DesktopSessionSettle',
'esign:setup' => 'app\\command\\EsignSetup',
'assistant-service:daily' => 'app\\command\\AssistantServiceDaily',
'assistant-service:alert' => 'app\\command\\AssistantServiceAlert',
+19
View File
@@ -125,5 +125,24 @@ return [
env('prescription_ai.openai_api_key', '')
),
],
/**
* 豆包:直连火山方舟 Ark 的 OpenAI 兼容 chat/completions,不经过 Dify。
* 只能内联图片(按 URL 由方舟拉取),PDF 等文档会被明确标记为不支持的附件。
* THINKING 留空则沿用模型默认的深度思考;填 disabled 可关闭以缩短响应时间。
*/
'doubao' => [
'name' => (string) env('prescription_ai.DOUBAO_MODEL', 'doubao-seed-2-1-pro-260915'),
'label' => '豆包',
'base_url' => rtrim((string) env(
'prescription_ai.DOUBAO_BASE_URL',
'https://ark.cn-beijing.volces.com/api/v3/chat/completions'
), '/'),
'max_files' => (int) env('prescription_ai.DOUBAO_MAX_FILES', 10),
'thinking' => strtolower(trim((string) env('prescription_ai.DOUBAO_THINKING', ''))),
'api_key' => (string) env(
'prescription_ai.DOUBAO_API_KEY',
env('prescription_ai.ARK_API_KEY', '')
),
],
],
];