-
Notifications
You must be signed in to change notification settings - Fork 22
feat(model/qwen3-tts-realtime):optimize_instructions params #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -50,8 +50,8 @@ public class QwenTtsRealtimeConfig { | |||||||||||||
| /** instructions for tts, default is null */ | ||||||||||||||
| @Builder.Default String instructions = null; | ||||||||||||||
|
|
||||||||||||||
| /** instructions will optimize on server side, default is null */ | ||||||||||||||
| @Builder.Default String optimizeInstructions = null; | ||||||||||||||
| /** instructions will optimize on server side, default is false */ | ||||||||||||||
| @Builder.Default boolean optimizeInstructions = false; | ||||||||||||||
|
|
||||||||||||||
| /** The extra parameters. */ | ||||||||||||||
| @Builder.Default Map<String, Object> parameters = null; | ||||||||||||||
|
|
@@ -94,8 +94,8 @@ public JsonObject getConfig() { | |||||||||||||
| config.put(QwenTtsRealtimeConstants.INSTRUCTIONS, instructions); | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| if (optimizeInstructions != null) { | ||||||||||||||
| config.put(QwenTtsRealtimeConstants.OPTIMIZE_INSTRUCTIONS, optimizeInstructions); | ||||||||||||||
| if (optimizeInstructions) { | ||||||||||||||
| config.put(QwenTtsRealtimeConstants.OPTIMIZE_INSTRUCTIONS, true); | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
+97
to
99
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To align with the suggested change of
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| if (parameters != null) { | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other optional boolean parameters in this class, like
enableTn(line 48), consider using theBooleanwrapper type instead of the primitiveboolean. This allows for anullstate, making the parameter handling more uniform throughout the class and aligning with the pattern used forenableTn.