### What problem does this PR solve?

### Type of change
- [x] Refactoring
This commit is contained in:
Kevin Hu
2024-12-31 14:31:31 +08:00
committed by GitHub
parent b52b0f68fc
commit 4ba4f622a5
6 changed files with 11 additions and 15 deletions

View File

@ -65,10 +65,6 @@ def set_conversation():
"message": [{"role": "assistant", "content": dia.prompt_config["prologue"]}]
}
ConversationService.save(**conv)
e, conv = ConversationService.get_by_id(conv["id"])
if not e:
return get_data_error_result(message="Fail to new a conversation!")
conv = conv.to_dict()
return get_json_result(data=conv)
except Exception as e:
return server_error_response(e)