Skip to content

Commit

Permalink
feat: use post (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhunter2333 authored Feb 18, 2023
1 parent 4cf428f commit db82203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


@ratelimit(10, 10)
@router.get("/chatgpt", response_class=PlainTextResponse, tags=["chatgpt"])
@router.post("/chatgpt", response_class=PlainTextResponse, tags=["chatgpt"])
def get_chatgpt_message(token: str, text: str, chat_id: str = "Default") -> str:
if token != Tools.get_api_token():
return JSONResponse(
Expand Down

0 comments on commit db82203

Please sign in to comment.