Skip to content

Commit a314ef0

Browse files
committed
fix: update successful message text
1 parent 87f6c81 commit a314ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/api/v1/chat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def draft_with_ai(draft_request: DraftRequest, db: Session = Depends(get_db)):
260260

261261
return {
262262
"status": "success",
263-
"message": "Chat message successfully generated.",
263+
"message": "Draft sucessfully generated!",
264264
"data": {"response": response["response"]},
265265
}
266266

@@ -271,5 +271,5 @@ def draft_with_ai(draft_request: DraftRequest, db: Session = Depends(get_db)):
271271
logger.error(traceback.format_exc())
272272
raise HTTPException(
273273
status_code=400,
274-
detail="Unable to process the chat query. Please try again.",
274+
detail="Unable to generate draft. Please try again.",
275275
)

0 commit comments

Comments
 (0)