feat: sync full-stack Docker runtime and UI
This commit is contained in:
@@ -77,4 +77,24 @@ def resolve_llm_policy(job_type: str, request_payload: dict[str, Any], config: R
|
||||
temperature=0.0,
|
||||
thinking=None,
|
||||
)
|
||||
if job_type == "tts":
|
||||
return LLMPolicy(
|
||||
job_type=job_type,
|
||||
model=config.speech_tts_model,
|
||||
profile="speech_tts",
|
||||
max_input_chars=config.speech_tts_max_input_chars,
|
||||
max_output_tokens=0,
|
||||
temperature=0.0,
|
||||
thinking=None,
|
||||
)
|
||||
if job_type == "asr":
|
||||
return LLMPolicy(
|
||||
job_type=job_type,
|
||||
model=config.speech_asr_model,
|
||||
profile="speech_asr",
|
||||
max_input_chars=config.speech_asr_max_input_bytes,
|
||||
max_output_tokens=0,
|
||||
temperature=0.0,
|
||||
thinking=None,
|
||||
)
|
||||
raise ValueError(f"unsupported llm policy job type: {job_type}")
|
||||
|
||||
Reference in New Issue
Block a user