This commit is contained in:
Your Name
2026-10-23 10:40:43 +08:00
parent e974d3cfa5
commit a3d2d3170d
14 changed files with 1660 additions and 83 deletions
+12
View File
@@ -18,6 +18,18 @@ return [
'prescription_ai.TIMEOUT',
env('prescription_ai.timeout', 90)
),
// Clinical source files are mandatory: upload their bytes first instead of
// relying on the model server to reach the workstation's resource URLs.
'required_attachment_transport' => 'upload',
'required_attachment_upload' => [
// Explicit aliases for this deployment's upload directory. Do not derive
// local-file access from an untrusted request Host or attachment URL.
'local_origins' => array_values(array_filter(array_map('trim', explode(',', (string) env(
'prescription_ai.REQUIRED_ATTACHMENT_LOCAL_ORIGINS',
'https://admin.zhenyangtang.com.cn,https://css.zhenyangtang.com.cn,http://admin.zhenyangtang.com.cn,http://css.zhenyangtang.com.cn'
))))),
'max_file_bytes' => (int) env('prescription_ai.REQUIRED_ATTACHMENT_MAX_BYTES', 20 * 1024 * 1024),
],
// Reuse only evidence for an identical, freshly authorized source; 0 disables.
'context_compaction_cache_ttl' => (int) env('prescription_ai.CONTEXT_COMPACTION_CACHE_TTL', 300),
/**