Skip to content

Commit 07df8e9

Browse files
agents: revert --llm default to the newest preview, not the spec's 'default' (v0.3.2)
v0.3.1 followed Codex's advice to set --llm default to the OpenAPI spec's nominal PromptAgentAPIModel.llm default (gemini-2.5-flash). That's the older stable release. The spec's declared "default" string lags by a couple of model generations. The ElevenLabs Agents backend already accepts gemini-3-flash-preview and gemini-3.1-flash-lite-preview in its LLM enum; our maintainer's live Guidance 40 session empirically verified gemini-3.1-flash-lite-preview as the fastest reliable default. Reverting to gemini-3.1-flash-lite-preview (the same default v0.2.x shipped with). gemini-3.1-flash-live-preview is Google's specialized voice model but isn't in the ElevenLabs LLM enum yet — we'll re- evaluate once it is. Touched: src/cli.rs (doc comment + default_value), src/help.rs (tips copy + two examples), src/commands/agent_info.rs (defaults), src/ commands/agents/agent_config.rs (GOTCHAS), README.md, CHANGELOG.md. Test suite still green (36 suites).
1 parent c270c3d commit 07df8e9

8 files changed

Lines changed: 50 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
All notable changes to `elevenlabs-cli` are listed here.
44
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning is [SemVer](https://semver.org).
55

6+
## [0.3.2] — 2026-04-21
7+
8+
### Changed — `--llm` default reverted to the newest preview
9+
10+
v0.3.1 moved the `agents create --llm` default to `gemini-2.5-flash`
11+
because the OpenAPI spec lists that string as the default on
12+
`PromptAgentAPIModel.llm`. That was a regression — the spec's "default"
13+
tracks the oldest-stable release, not the newest-preview. ElevenLabs
14+
already accepts several newer Gemini flash previews
15+
(`gemini-3-flash-preview`, `gemini-3.1-flash-lite-preview`); our
16+
maintainer's live Guidance 40 session empirically verified
17+
`gemini-3.1-flash-lite-preview` as the fastest reliable default. This
18+
release reverts to that.
19+
20+
- `agents create --llm` default: `gemini-2.5-flash`
21+
`gemini-3.1-flash-lite-preview`. The specialized voice model
22+
`gemini-3.1-flash-live-preview` exists at Google but isn't in the
23+
ElevenLabs LLM enum yet; once it's added we'll re-evaluate.
24+
- Help / agent-info / GOTCHAS / README all aligned on the new default.
25+
626
## [0.3.1] — 2026-04-21
727

828
Post-ship review of v0.3.0 (Codex, gpt-5.4 xhigh) caught six real bugs +

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "elevenlabs"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2024"
55
rust-version = "1.85"
66
description = "Agent-friendly CLI for the ElevenLabs AI audio platform (TTS, STT, voices, agents, music)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ elevenlabs agents show <agent_id> # alias: get
272272
elevenlabs agents create <name>
273273
--system-prompt "..."
274274
[--first-message "Hi, how can I help?"]
275-
[--voice-id ID] [--language en] [--llm gemini-2.5-flash]
275+
[--voice-id ID] [--language en] [--llm gemini-3.1-flash-lite-preview]
276276
[--temperature 0.5] [--model-id eleven_flash_v2_5]
277277
[--expressive-mode] [--max-duration-seconds 600]
278278
[--voicemail-detection] [--voicemail-message "..."]

src/cli.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,12 +1175,18 @@ pub enum AgentsAction {
11751175
#[arg(long, default_value = "en")]
11761176
language: String,
11771177

1178-
/// LLM id. Default `gemini-2.5-flash` (matches the OpenAPI spec's
1179-
/// current default on `PromptAgentAPIModel.llm`). Discover the full
1180-
/// backend allowlist with `elevenlabs agents llms`. If
1181-
/// `conversations show` reports 0 output tokens on the chosen LLM,
1182-
/// the backend rejected it and fell back silently — swap LLMs.
1183-
#[arg(long, default_value = "gemini-2.5-flash")]
1178+
/// LLM id. Default `gemini-3.1-flash-lite-preview` — the newest
1179+
/// Gemini flash preview the ElevenLabs Agents backend accepts (the
1180+
/// OpenAPI spec's `PromptAgentAPIModel.llm` *default* string is
1181+
/// `gemini-2.5-flash`, but that's the older stable release; 3.1 is
1182+
/// current, empirically working, and lower-latency for turn-based
1183+
/// voice agents). `gemini-3.1-flash-live-preview` / `gemini-3.1-
1184+
/// flash-preview` exist at Google but aren't in the ElevenLabs
1185+
/// allowlist yet. Discover the full allowlist with
1186+
/// `elevenlabs agents llms`. If `conversations show` reports 0
1187+
/// output tokens on the chosen LLM, the backend rejected it and
1188+
/// fell back silently — swap LLMs.
1189+
#[arg(long, default_value = "gemini-3.1-flash-lite-preview")]
11841190
llm: String,
11851191

11861192
/// Temperature 0.0-1.0

src/commands/agent_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub fn run() {
153153
"description": "Create a conversational AI agent. See `known_values.agent_tts_model_ids` and `gotchas.agents` before passing --model-id / --llm / --expressive-mode.",
154154
"aliases": ["new"],
155155
"defaults": {
156-
"--llm": "gemini-2.5-flash",
156+
"--llm": "gemini-3.1-flash-lite-preview",
157157
"--model-id": "eleven_flash_v2_5",
158158
"--temperature": 0.5,
159159
"--language": "en",

src/commands/agents/agent_config.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ pub const GOTCHAS: &[&str] = &[
5151
"expressive_mode only takes effect with model_id=eleven_v3_conversational. With any other \
5252
model the server silently drops the flag — the PATCH succeeds but expressive_mode stays false.",
5353
"--llm accepts any string but the Agents backend has its own allowlist. Discover the live list \
54-
with `elevenlabs agents llms`. The OpenAPI spec default is `gemini-2.5-flash`. If an accepted \
55-
LLM fails to generate at conversation time (0 output tokens in `conversations show`), swap LLMs.",
54+
with `elevenlabs agents llms`. This CLI defaults to `gemini-3.1-flash-lite-preview` (the newest \
55+
Gemini flash preview in the ElevenLabs enum) — the OpenAPI spec default `gemini-2.5-flash` is \
56+
the older stable release. If an accepted LLM fails to generate at conversation time (0 output \
57+
tokens in `conversations show`), swap LLMs.",
5658
"Spec default for conversation.max_duration_seconds is 600 (10 min). This CLI's \
5759
`agents create` defaults to the same value. Bump to 1800 (30 min) or higher for long-form \
5860
interviews / coaching — calls hang up hard at this limit regardless of transcript state.",

src/help.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,14 @@ EXAMPLES
248248
pub const AGENTS_CREATE_HELP: &str = "TIPS
249249
- --system-prompt is REQUIRED — there is no interactive fallback. Keep
250250
prompts specific; vague prompts yield vague agents.
251-
- Defaults: --llm gemini-2.5-flash (spec default on
252-
PromptAgentAPIModel.llm), --model-id eleven_flash_v2_5 (lowest
253-
TTS latency, current agent recommendation), --max-duration-seconds
254-
600 (10 min, matching the spec default). Override --llm for
255-
reasoning-heavy use cases; override --model-id for higher-fidelity
256-
voice; bump --max-duration-seconds for long-form interviews.
251+
- Defaults: --llm gemini-3.1-flash-lite-preview (newest Gemini flash
252+
preview the ElevenLabs backend accepts — the OpenAPI spec nominally
253+
defaults to the older gemini-2.5-flash but 3.1 is current and lower
254+
latency in practice), --model-id eleven_flash_v2_5 (lowest TTS
255+
latency, current agent recommendation), --max-duration-seconds 600
256+
(10 min, matching the spec default). Override --llm for reasoning-
257+
heavy use cases; override --model-id for higher-fidelity voice;
258+
bump --max-duration-seconds for long-form interviews.
257259
- Valid --model-id values (server-enforced allowlist):
258260
eleven_flash_v2_5 (recommended), eleven_flash_v2, eleven_multilingual_v2,
259261
eleven_v3_conversational, eleven_turbo_v2_5 (DEPRECATED —
@@ -299,7 +301,7 @@ EXAMPLES
299301
$ elevenlabs agents create \"Research Assistant\" \\
300302
--system-prompt \"$(cat prompts/ra.txt)\" \\
301303
--voice-id 21m00Tcm4TlvDq8ikWAM \\
302-
--llm gemini-2.5-flash --model-id eleven_multilingual_v2
304+
--llm gemini-3.1-flash-lite-preview --model-id eleven_multilingual_v2
303305
304306
# Attach docs after create
305307
$ AGENT=$(elevenlabs agents create ... --json | jq -r '.data.agent_id')
@@ -365,7 +367,7 @@ EXAMPLES
365367
$ elevenlabs agents update agent_abc --patch p.json
366368
367369
# Change just the LLM
368-
$ echo '{\"conversation_config\":{\"agent\":{\"prompt\":{\"llm\":\"gemini-2.5-flash\"}}}}' > p.json
370+
$ echo '{\"conversation_config\":{\"agent\":{\"prompt\":{\"llm\":\"gemini-3.1-flash-lite-preview\"}}}}' > p.json
369371
$ elevenlabs agents update agent_abc --patch p.json
370372
371373
# Rename the agent (top-level, not inside conversation_config)

0 commit comments

Comments
 (0)