feat(ai): upgrade Gemini models to 3.1-pro-preview and 3.1-pro-tts-preview
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
12fe4ebcbb
commit
3fb8dce3ee
3 changed files with 3 additions and 3 deletions
|
|
@ -222,7 +222,7 @@ class Settings(BaseSettings):
|
|||
# Gemini TTS Model Options
|
||||
gemini_tts_models: dict[str, str] = {
|
||||
"flash": "gemini-3.1-flash-tts-preview", # Fast, cost-efficient
|
||||
"pro": "gemini-2.5-pro-preview-tts", # Higher quality
|
||||
"pro": "gemini-3.1-pro-tts-preview", # Higher quality
|
||||
}
|
||||
|
||||
# Gemini TTS Style Presets - prompts prepended to text for style control
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ async def _record_gemini_usage(
|
|||
|
||||
class GeminiService:
|
||||
def __init__(self):
|
||||
self.model_name = 'gemini-3-pro-preview' # Gemini 3 Pro preview model
|
||||
self.model_name = 'gemini-3.1-pro-preview'
|
||||
self.prompts_dir = Path(__file__).parent.parent / "prompts"
|
||||
|
||||
def _load_prompt(self, prompt_file: str) -> str:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ _TTS_PROVIDER_MODEL_MAP = {
|
|||
|
||||
_TTS_MODEL_STRINGS = {
|
||||
"flash": "gemini-3.1-flash-tts-preview",
|
||||
"pro": "gemini-2.5-pro-preview-tts",
|
||||
"pro": "gemini-3.1-pro-tts-preview",
|
||||
"standard": "standard",
|
||||
"wavenet": "wavenet",
|
||||
"neural2": "neural2",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue