接入香港 Vertex SMART 个人语音输入与热词
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""HK reuses tools-pve provider routing without OAuth, database, or private vocabulary."""
|
||||
"""HK provider routes and separately opted-in personal Vertex dictation."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
@@ -17,6 +17,11 @@ def build_hk_config(catalog, env):
|
||||
'model': 'gemini/gemini-3.5-transcribe',
|
||||
'api_key': 'os.environ/GOOGLE_AI_STUDIO_API_KEY'}})
|
||||
if env.get('VERTEXAI_ENABLED', '').lower() == 'true' and env.get('VERTEXAI_PROJECT'):
|
||||
routes.append({'model_name': 'gemini-transcribe-personal', 'litellm_params': {
|
||||
'model': 'vertex_ai/gemini-3.5-transcribe',
|
||||
'vertex_project': 'os.environ/VERTEXAI_PROJECT',
|
||||
'vertex_location': 'global',
|
||||
'personal_dictation': True}})
|
||||
# Keep old client aliases; the old 3.6 alias now follows the verified Flash map.
|
||||
legacy = {
|
||||
'gemini-3.6-flash': catalog['google_vertex']['gemini-flash-vertex'],
|
||||
|
||||
Reference in New Issue
Block a user