Skip to content

Commit 4448113

Browse files
committed
fix: back
Signed-off-by: yihong0618 <[email protected]>
1 parent 74f9de2 commit 4448113

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

pdm.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ lz4==4.3.3
5555
markdown-it-py==3.0.0
5656
marshmallow==3.20.1
5757
mdurl==0.1.2
58-
miservice-fork==2.4.1
58+
miservice-fork==2.4.2
5959
multidict==6.0.4
6060
mutagen==1.47.0
6161
mypy-extensions==1.0.0

xiaogpt/cli.py

-3
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ def main():
211211
options = parser.parse_args()
212212
if options.bot in ["bard"] and options.stream:
213213
raise Exception("For now Bard do not support stream")
214-
if options.tts in ["edge", "openai", "azure"]:
215-
print("Will close stream to better tts")
216-
options.stream = False
217214
config = Config.from_options(options)
218215

219216
miboy = MiGPT(config)

xiaogpt/config.py

-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ def __post_init__(self) -> None:
114114
)
115115
if self.tts == "azure" and not self.azure_tts_speech_key:
116116
raise Exception("Using Azure TTS needs azure speech key")
117-
if self.tts in ["azure", "edge", "openai"]:
118-
print("Will close stream when use tts: {self.tts} for better experience")
119-
self.stream = False
120117

121118
@property
122119
def tts_command(self) -> str:

0 commit comments

Comments
 (0)