为 tools-pve 个人语音输入启用 SMART
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user