Repository navigation
Conversation
The existing tests built their own configuration, so they still passed with the dashboard template reverted to s2-pro. This case loads the template from CONFIG_METADATA_2 and expects the s3-pro header.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="tests/test_fishaudio_tts_source.py" line_range="16" />
<code_context>
+ )
+
+
+def test_model_defaults_to_s3_pro():
+ assert _provider().headers["model"] == "s3-pro"
+
</code_context>
<issue_to_address>
**Test file added despite policy**
The PR adds a new test file, contrary to the repository's instruction not to generate test files.
Remove the new test file to comply with the repository instruction.
</issue_to_address>Sourcery assessment
Approved.
| ) | ||
|
|
||
|
|
||
| def test_model_defaults_to_s3_pro(): |
There was a problem hiding this comment.
⚪ Low · Test file added despite policy
The PR adds a new test file, contrary to the repository's instruction not to generate test files.
Remove the new test file to comply with the repository instruction.
Prompt for AI agents
In `tests/test_fishaudio_tts_source.py` at line 16:
**Test file added despite policy**
The PR adds a new test file, contrary to the repository's instruction not to generate test files.
Remove the new test file to comply with the repository instruction.From .github/copilot-instructions.md L27:
Do not generate test files for now.
I maintain Fish Audio's SDKs and docs.
Fish Audio's recommended text-to-speech model, and the default of its official Python SDK, is now S3 Pro (
s3-pro). #9381 set the FishAudio TTS provider's default tos2-probecause that was the SDK default at the time; this moves it to the current one. S3 Pro costs the same as S2 Pro (pricing).Modifications / 改动点
astrbot/core/config/default.py: the FishAudio TTS(API) template now uses"model": "s3-pro".astrbot/core/provider/sources/fishaudio_tts_api_source.py: the fallback for a config withoutmodeliss3-pro.tests/test_fishaudio_tts_source.py(new): checks the defaultmodelheader, that a configured model is sent unchanged, and that a provider built from the dashboard template inCONFIG_METADATA_2sendss3-pro.Providers that already have a
modelkeep it.Screenshots or Test Results / 运行截图或测试结果
Verification steps:
With the source file from
master,test_model_defaults_to_s3_profails; with the template indefault.pyset back tos2-pro,test_dashboard_template_sends_s3_profails.ProviderFishAudioTTSAPIbuilt from the shipped template inCONFIG_METADATA_2(character可莉, format set to mp3),get_audio("Read [the guide](https://example.com/guide) today.")against the Fish Audio API returns an MP3 that transcribes as "Read the guide today!". S3 Pro reads Markdown link text; S2 models drop it.Not run:
make pr-test-neo/pr-test-full, the WebUI, CI.Checklist / 检查清单
😊 If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
/ 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。
(Not discussed beforehand. The change is a default value, not a new feature.)
👀 My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
/ 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”。
📚 I checked the affected WebUI instructions and screenshots in
docs/zhanddocs/enagainst the changed navigation, page structure, and labels, and updated them in this PR (or explained why no documentation update is needed). For renamed, moved, or merged entry points, I included an old entry → new entry mapping in the documentation and changelog./ 我已对照变化后的 WebUI 入口、页面结构和术语,核对并在本 PR 中更新
docs/zh和docs/en的相关操作说明与截图(或说明无需更新文档的原因)。入口改名、移动或合并时,已在文档和 changelog 中补充 旧入口 → 新入口 对照。(No documentation update needed: no navigation, page or label changes, and
docs/zhanddocs/endo not mention the FishAudio TTS model.)🤓 I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in
requirements.txtandpyproject.toml./ 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到
requirements.txt和pyproject.toml文件相应位置。😮 My changes do not introduce malicious code.
/ 我的更改没有引入恶意代码。
Summary by Sourcery
Use Fish Audio’s current recommended
s3-promodel as the default for new or unspecified FishAudio TTS configurations.Enhancements:
s3-pro, while preserving explicitly configured models.Tests: