Use POST for suggested questions

This commit is contained in:
-LAN-
2025-09-27 02:54:57 +08:00
parent e0fb754e80
commit c9eabe1612
8 changed files with 221 additions and 6 deletions

View File

@ -249,7 +249,7 @@ class MessageSuggestedQuestionApi(WebApiResource):
}
)
@marshal_with(suggested_questions_response_fields)
def get(self, app_model, end_user, message_id):
def post(self, app_model, end_user, message_id):
app_mode = AppMode.value_of(app_model.mode)
if app_mode not in {AppMode.CHAT, AppMode.AGENT_CHAT, AppMode.ADVANCED_CHAT}:
raise NotCompletionAppError()