更新
This commit is contained in:
@@ -21,11 +21,11 @@ class DiagnosisAiLogic extends BaseLogic
|
||||
/** @var string Safe machine-readable code for the current assistant request. */
|
||||
private static $assistantErrorCode = 'AI_ASSISTANT_FAILED';
|
||||
|
||||
private const PROMPT_VERSION = 'patient-context-case-explain-v2';
|
||||
private const PROMPT_VERSION = 'patient-context-case-explain-nihaixia-v3';
|
||||
|
||||
private const ASSISTANT_PROMPT_VERSION = 'patient-context-assistant-v2';
|
||||
private const ASSISTANT_PROMPT_VERSION = 'patient-context-assistant-nihaixia-v3';
|
||||
|
||||
private const ANALYSIS_PROMPT_VERSION = 'patient-context-analysis-v2';
|
||||
private const ANALYSIS_PROMPT_VERSION = 'patient-context-analysis-nihaixia-v3';
|
||||
|
||||
private const MAX_ASSISTANT_PROMPT_LENGTH = 500;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class PatientAiReportLogic extends BaseLogic
|
||||
|
||||
private const PERMISSION_GENERATE = 'tcm.diagnosis/generatepatientaireport';
|
||||
|
||||
private const PROMPT_VERSION = 'patient-longitudinal-report-v2';
|
||||
private const PROMPT_VERSION = 'patient-longitudinal-report-nihaixia-v3';
|
||||
|
||||
/** @var array<int,string> */
|
||||
private const MODEL_KEYS = ['qwen', 'openai'];
|
||||
|
||||
@@ -16,7 +16,7 @@ use think\facade\Log;
|
||||
*/
|
||||
class PrescriptionLibraryAiLogic extends BaseLogic
|
||||
{
|
||||
private const PROMPT_VERSION = 'rx-explain-v1';
|
||||
private const PROMPT_VERSION = 'rx-explain-nihaixia-v2';
|
||||
|
||||
private const MAX_REPORT_LENGTH = 12000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user