Skip to content

docs: the Python SDK defaults to s2.1-pro (since 1.4.0) - #418

Merged
lumpinif merged 2 commits into
mainfrom
docs/python-sdk-default-model
Nov 26, 2026
Merged

lumpinif merged 2 commits into
mainfrom
docs/python-sdk-default-model

Conversation

@lumpinif

@lumpinif lumpinif commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Since fish-audio-sdk 1.4.0 (fishaudio/fish-audio-python#162), the Python SDK's text-to-speech methods default to model="s2.1-pro". Its Model type also includes s2.1-pro, s2.1-pro-free and drama-3, and accepts any string. The docs and the SDK skill still said the default is s2-pro and that s2.1-pro needs # type: ignore. That was true only up to 1.3.0.

What changed

  • features/text-to-speech.mdx: the Models paragraph now says the default is s2.1-pro from 1.4.0 (s2-pro before).
  • SDK skill (SKILL.md, references/text-to-speech.md, references/websocket.md): corrected the default and the model parameter type, removed the # type: ignore advice for Python, and changed the Python examples and the name map from model="s2-pro" to model="s2.1-pro". The JavaScript text is unchanged; docs(sdk): update JavaScript SDK pages for fish-audio 0.2.0 #410 updates it for fish-audio 0.2.0.

Checked

  • Read the default and the Model type in the released 1.3.0, 1.4.0, 1.5.0 and 1.6.0 wheels from PyPI. In 1.4.0 through 1.6.0, every TTS method, including stream_websocket, defaults to "s2.1-pro".
  • Searched the repo for other statements of the default (cookbooks, quickstarts, migration pages, llms.txt). The cookbooks pass a model explicitly, so they are unaffected.
  • The generated Python SDK reference on main still shows s2-pro signatures; the bot PR Update Python SDK API Reference #112 regenerates it.

Conflicts with #410, which rewrites the same lines and still says the Python default is s2-pro. The fix rebased onto #410 is ready to apply to whichever of the two merges second.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

fish-audio-sdk 1.4.0 changed the default TTS model from s2-pro to
s2.1-pro and widened the Model type (s2.1-pro, s2.1-pro-free, drama-3,
any str). Correct the Text to Speech page and the SDK skill, which still
said s2-pro and asked for # type: ignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hanabiaiinc 🟢 Ready View Preview Nov 26, 2026, 3:07 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b1a06ba3-3775-4e2e-ad2b-be73c119c144
Commits

Reviewing files that changed from the base of the PR and between 4f13aa3 and 97b9943.

Files selected for processing: 4

  • .mintlify/skills/fish-audio-sdk/SKILL.md
  • .mintlify/skills/fish-audio-sdk/references/text-to-speech.md
  • .mintlify/skills/fish-audio-sdk/references/websocket.md
  • features/text-to-speech.mdx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T09:02:54.967861Z 247ab19 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lumpinif
lumpinif merged commit 287f6a8 into main Nov 26, 2026
6 of 7 checks passed
@lumpinif
lumpinif deleted the docs/python-sdk-default-model branch November 26, 2026 03:13

This branch was successfully deployed

1 active deployment
staging — 97b99437 Deployed Nov 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant