Merge branch 'master' of http://git.zhenyangtang.com.cn/ZYT/zyt
This commit is contained in:
@@ -112,8 +112,10 @@ class DifyChatService
|
||||
$ancientBookSources = $evidenceOnly || $caseReferences ? [] : ClinicalKnowledgeReference::ancientBookSources($query);
|
||||
try {
|
||||
if (!$evidenceOnly) {
|
||||
$query = $caseReferences ? ClinicalKnowledgeReference::augmentCaseQuery($query, $consultationReferences)
|
||||
: ClinicalKnowledgeReference::augmentQueryWithAncientBookSources($query, $ancientBookSources);
|
||||
$query = $consultationReferences && ($options['response_contract'] ?? '') === 'live_consultation'
|
||||
? ClinicalKnowledgeReference::augmentLiveConsultationQuery($query, (string) ($options['analysis_scope'] ?? 'authorized_case'))
|
||||
: ($caseReferences ? ClinicalKnowledgeReference::augmentCaseQuery($query, $consultationReferences)
|
||||
: ClinicalKnowledgeReference::augmentQueryWithAncientBookSources($query, $ancientBookSources));
|
||||
}
|
||||
} catch (\RuntimeException $error) {
|
||||
return self::error('SKILL_UNAVAILABLE', '临床 AI 参考资料不可用');
|
||||
@@ -318,8 +320,10 @@ class DifyChatService
|
||||
$ancientBookSources = $evidenceOnly || $caseReferences ? [] : ClinicalKnowledgeReference::ancientBookSources($query);
|
||||
try {
|
||||
if (!$evidenceOnly) {
|
||||
$query = $caseReferences ? ClinicalKnowledgeReference::augmentCaseQuery($query, $consultationReferences)
|
||||
: ClinicalKnowledgeReference::augmentQueryWithAncientBookSources($query, $ancientBookSources);
|
||||
$query = $consultationReferences && ($options['response_contract'] ?? '') === 'live_consultation'
|
||||
? ClinicalKnowledgeReference::augmentLiveConsultationQuery($query, (string) ($options['analysis_scope'] ?? 'authorized_case'))
|
||||
: ($caseReferences ? ClinicalKnowledgeReference::augmentCaseQuery($query, $consultationReferences)
|
||||
: ClinicalKnowledgeReference::augmentQueryWithAncientBookSources($query, $ancientBookSources));
|
||||
}
|
||||
} catch (\RuntimeException $error) {
|
||||
return self::error('SKILL_UNAVAILABLE', '临床 AI 参考资料不可用');
|
||||
|
||||
Reference in New Issue
Block a user