Merge branch 'master' of http://git.zhenyangtang.com.cn/ZYT/zyt
This commit is contained in:
@@ -21,6 +21,18 @@ return [
|
||||
// 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',
|
||||
// A byte budget for additional evidence, not a claim about provider token capacity.
|
||||
'required_attachment_input_bytes' => (int) env('prescription_ai.ATTACHMENT_INPUT_BYTES', 196608),
|
||||
// Independent local text recognition supplements the unchanged image/model
|
||||
// transport. Install the pinned offline worker before enabling on a host.
|
||||
'required_attachment_ocr' => [
|
||||
'enabled' => filter_var(env('prescription_ai.LOCAL_OCR_ENABLED', false), FILTER_VALIDATE_BOOLEAN),
|
||||
'python' => (string) env('prescription_ai.LOCAL_OCR_PYTHON', ''),
|
||||
'timeout_seconds' => (int) env('prescription_ai.LOCAL_OCR_TIMEOUT', 15),
|
||||
'max_text_bytes' => 48000,
|
||||
'threads' => 2,
|
||||
'detection_limit' => 736,
|
||||
],
|
||||
'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.
|
||||
@@ -43,11 +55,11 @@ return [
|
||||
// Reuse only evidence for an identical, freshly authorized source; 0 disables.
|
||||
'context_compaction_cache_ttl' => (int) env('prescription_ai.CONTEXT_COMPACTION_CACHE_TTL', 300),
|
||||
/**
|
||||
* 仅供历史/非必需附件路径使用的单次附件数量上限(默认 3);这些路径可将
|
||||
* 超出附件改为清单。required_files 路径提交全部可用附件;确认不存在的源文件
|
||||
* 明确标为已跳过,并继续发送完整正文。其他上传、数量或类型错误仍明确失败。
|
||||
* 各应用可用 models 中的 max_files 覆盖非必需附件上限;上游实际数量限制
|
||||
* 应只读核对 /parameters 的 file_upload.number_limits。
|
||||
* 单个应用请求的附件上限(默认 3),各模型可在 models 中覆盖。
|
||||
* required_files 超限时在同应用分批提取全部可用附件,再结合完整正文综合;
|
||||
* 确认缺失明确跳过,明确拒收逐项记录,鉴权/网络等不明确错误仍安全失败。
|
||||
* 普通可选附件保留原清单策略。修改上游后核对 /parameters 的
|
||||
* file_upload.number_limits 并同步此配置,避免不必要的分批。
|
||||
*/
|
||||
'max_files' => (int) env(
|
||||
'prescription_ai.MAX_FILES',
|
||||
@@ -96,8 +108,8 @@ return [
|
||||
'qwen' => [
|
||||
'name' => 'qwen3.6-35b',
|
||||
'label' => '千问',
|
||||
// 该应用 file_upload.number_limits = 3
|
||||
'max_files' => (int) env('prescription_ai.QWEN_MAX_FILES', 3),
|
||||
// 2026-10-23 已核对原应用发布后的 file_upload.number_limits = 10。
|
||||
'max_files' => (int) env('prescription_ai.QWEN_MAX_FILES', 10),
|
||||
'api_key' => (string) env(
|
||||
'prescription_ai.QWEN_API_KEY',
|
||||
env('prescription_ai.qwen_api_key', '')
|
||||
|
||||
Reference in New Issue
Block a user