matteocodogno / CipherQuest

Engage with CipherQuest, a sophisticated AI chatbot designed with a comprehensive knowledge base and a closely guarded secret. The bot won't reveal its secret until you ask the right questions. Can you outsmart our AI and extract the hidden truth? Test your skills and uncover the secret in CipherQuest!
MIT License
5 stars 0 forks source link

feat: create endpoint to retrieve message history by userid #49

Open rubin0 opened 1 day ago

rubin0 commented 1 day ago

closes #19

Example of response:

[
  {
    "message": "Hellooo",
    "sender": "USER",
    "timestamp": "2024-10-25T13:02:58.111078Z"
  },
  {
    "message": "Resource #3124563897, how may I optimize your functionality today?",
    "sender": "ASSISTANT",
    "timestamp": "2024-10-25T13:03:00.757347Z"
  },
  {
    "message": "Hello friend!",
    "sender": "USER",
    "timestamp": "2024-10-25T13:08:57.282348Z"
  },
  {
    "message": "Hello, Resource #5686232510. How may I optimize your functionality today?",
    "sender": "ASSISTANT",
    "timestamp": "2024-10-25T13:08:59.682139Z"
  }
]