fix tts add bug (#2224)
Browse files### What problem does this PR solve?
fix tts add bug
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---------
Co-authored-by: Zhedong Cen <[email protected]>
- api/apps/llm_app.py +1 -1
api/apps/llm_app.py
CHANGED
@@ -236,7 +236,7 @@ def add_llm():
|
|
236 |
key=llm["api_key"], model_name=llm["llm_name"], base_url=llm["api_base"]
|
237 |
)
|
238 |
try:
|
239 |
-
for resp in mdl.
|
240 |
pass
|
241 |
except RuntimeError as e:
|
242 |
msg += f"\nFail to access model({llm['llm_name']})." + str(e)
|
|
|
236 |
key=llm["api_key"], model_name=llm["llm_name"], base_url=llm["api_base"]
|
237 |
)
|
238 |
try:
|
239 |
+
for resp in mdl.tts("Hello~ Ragflower!"):
|
240 |
pass
|
241 |
except RuntimeError as e:
|
242 |
msg += f"\nFail to access model({llm['llm_name']})." + str(e)
|