Authenticate the Fluxions websocket - #450
Conversation
Fluxions bot-gated the keyless VUI socket, so send the API key as a bearer header on the handshake and wire it through Settings, the provider key map, and tests.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThis change adds Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.env.example:
- Line 42: Reorder the environment entries in the .env.example block so
FLUXIONS_API_KEY appears before GLADIA_API_KEY, keeping the rest of the variable
order unchanged and aligned with the dotenv-linter expectation.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 1652aa37-553b-454d-8589-704d793a3b98
📒 Files selected for processing (6)
.env.examplerunner/src/coval_bench/config.pyrunner/src/coval_bench/providers/tts/fluxions.pyrunner/src/coval_bench/registries/models.pyrunner/src/coval_bench/registries/provider_keys.pyrunner/tests/providers/tts/test_fluxions.py
| MINIMAX_API_KEY= | ||
| MODULATE_API_KEY= | ||
| LMNT_API_KEY= | ||
| FLUXIONS_API_KEY= |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Place FLUXIONS_API_KEY before GLADIA_API_KEY.
dotenv-linter reports this key is out of order. Restore the expected order to keep the environment-file lint check passing.
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 42-42: [UnorderedKey] The FLUXIONS_API_KEY key should go before the GLADIA_API_KEY key
(UnorderedKey)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.env.example at line 42, Reorder the environment entries in the .env.example
block so FLUXIONS_API_KEY appears before GLADIA_API_KEY, keeping the rest of the
variable order unchanged and aligned with the dotenv-linter expectation.
Source: Linters/SAST tools
Add an api key handshake to the fluxions client
Greptile Summary
The PR adds API-key authentication to the Fluxions TTS WebSocket handshake.
FLUXIONS_API_KEYto settings, environment documentation, and the provider-key registry.Confidence Score: 5/5
The PR appears safe to merge, with no concrete changed-code defect established.
The new credential follows the existing settings and provider-key conventions, and the supported WebSocket dependency accepts the authorization-header argument used by the handshake.
Reviews (1): Last reviewed commit: "Authenticate the Fluxions websocket" | Re-trigger Greptile
Context used: