feat: add durable ASR-to-patient extraction and guarded review
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Merge this section into the target environment's existing .env. No credentials are provided here.
|
||||
# Only dify may reuse existing [prescription_ai] base/key. MODEL is required only for openai_audio.
|
||||
# Only dify may reuse existing [prescription_ai] base/key. openai_audio needs MODEL; asr_then_llm needs both stage model/key/base triples.
|
||||
[followup_audio]
|
||||
ENABLED = false
|
||||
AUDIO_VERIFIED = false
|
||||
@@ -17,7 +17,7 @@ ENCRYPTION_KEY =
|
||||
|
||||
# Never enable HTTP for real audio. This switch applies only to the synthetic CLI probe.
|
||||
ALLOW_INSECURE_SYNTHETIC = false
|
||||
# Supported drivers: dify, openai_audio. openai_audio MODEL is sent in the request.
|
||||
# Supported drivers: dify, openai_audio, asr_then_llm. openai_audio MODEL is sent in the request.
|
||||
# Dify selects an application with its key; MODEL does not change the model inside that app.
|
||||
QWEN_DRIVER = dify
|
||||
QWEN_BASE_URL =
|
||||
@@ -33,3 +33,34 @@ OPENAI_LABEL = openai
|
||||
OPENAI_VERIFIED_FINGERPRINT =
|
||||
# Fingerprints must come from all three passing synthetic gates for this exact driver/URL/model/key.
|
||||
# Any identity change invalidates prior verification; unknown prior requests still require reconciliation.
|
||||
|
||||
# Two-stage is opt-in per slot. ASR transcript is canonical; extraction uses text only.
|
||||
ASR_CHUNK_SECONDS = 120
|
||||
ASR_REQUEST_TIMEOUT = 240
|
||||
EXTRACTION_REQUEST_TIMEOUT = 240
|
||||
# HTTPS required. Enable this only for an operator-established SSH tunnel on literal 127.0.0.1 or [::1].
|
||||
# localhost, other hosts, external HTTP and HTTP redirects are never exceptions.
|
||||
QWEN_ALLOW_LOOPBACK_TUNNEL = false
|
||||
QWEN_ASR_BASE_URL =
|
||||
QWEN_ASR_API_KEY =
|
||||
QWEN_ASR_MODEL =
|
||||
QWEN_EXTRACTION_BASE_URL =
|
||||
QWEN_EXTRACTION_API_KEY =
|
||||
QWEN_EXTRACTION_MODEL =
|
||||
OPENAI_ALLOW_LOOPBACK_TUNNEL = false
|
||||
OPENAI_ASR_BASE_URL =
|
||||
OPENAI_ASR_API_KEY =
|
||||
OPENAI_ASR_MODEL =
|
||||
OPENAI_EXTRACTION_BASE_URL =
|
||||
OPENAI_EXTRACTION_API_KEY =
|
||||
OPENAI_EXTRACTION_MODEL =
|
||||
|
||||
# V2 structured extraction; explicit json_schema/json_object/prompt_json, never automatic fallback.
|
||||
QWEN_EXTRACTION_RESPONSE_FORMAT = json_schema
|
||||
QWEN_EXTRACTION_MAX_TOKENS = 8192
|
||||
OPENAI_EXTRACTION_RESPONSE_FORMAT = json_schema
|
||||
OPENAI_EXTRACTION_MAX_TOKENS = 8192
|
||||
# Optional vendor extension; leave absent for portable providers. true/false are explicit Qwen choices.
|
||||
# The local Qwen run exhausted 8192 tokens with thinking=true; false produced JSON, not a quality pass.
|
||||
# QWEN_EXTRACTION_ENABLE_THINKING = false
|
||||
# OPENAI_EXTRACTION_ENABLE_THINKING = false
|
||||
|
||||
Reference in New Issue
Block a user