为 tools-pve 个人语音输入启用 SMART

This commit is contained in:
Codex
2026-10-25 01:09:53 -07:00
parent 443ed46bf9
commit f9ccf7af2b
2 changed files with 5 additions and 4 deletions
@@ -1,4 +1,4 @@
"""Add native vocabulary only to explicitly opted-in Gemini transcription calls."""
"""Add native SMART mode and vocabulary only to opted-in dictation calls."""
import json
from pathlib import Path
@@ -34,6 +34,7 @@ def install():
# Fail closed if a future LiteLLM version enables conflicting features by default.
if config.get('mode'):
raise ValueError('Unexpected Gemini transcription mode')
config['mode'] = 'smart'
config['custom_vocabulary'] = vocabulary()
return result