fix some prompt
This commit is contained in:
1 parent
4e15e44cbe
commit
4c47d6e0fc
7 files changed
+164
-7
No files matched your search
@@ -44,6 +44,7 @@ from app.utils.chatgpt_prompt import ChatgptService
|
||||
from app.utils.pagination import PaginatedResponse, get_paginated
|
||||
|
||||
from app.utils.prompts.prompts import lyric_prompt
|
||||
import traceback as tb
|
||||
|
||||
router = APIRouter(prefix="/lyric", tags=["lyric"])
|
||||
|
||||
@@ -360,7 +361,7 @@ async def generate_lyric(
|
||||
task_id=task_id,
|
||||
lyric=None,
|
||||
language=request_body.language,
|
||||
error_message=str(e),
|
||||
error_message=''.join(tb.format_exception(None, e, e.__traceback__)),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user