Project

General

Profile

Actions

SendRequest() method » History » Revision 3

« Previous | Revision 3/19 (diff) | Next »
Tomislav Pleše, 09/20/2025 12:17 PM


SendRequest() method

Cases:

  1. Root Point - First Prompt
    • FE - Create new Point
    • FE - Show new Point on Screen - only the Prompt
  • FE - Create Context - message list of previous Points (Prompt+Response). Since, there is only this first Prompt, add only that
    • FE - Send new Point to BE
    • BE - Save new Point to DB
    • BE - Send Prompt to OpenAI
    • BE - Receive the Response from OpenAI
    • BE - Save Response to DB (with the new Point)
    • BE- Send the new Point (with updated Response) to FE
    • FE - Show updated new Point on Screen - both Prompt and Response
  1. Existing Point - Second prompt
    • FE - Create new Point
    • FE - Show new Point on Screen, under previous Point - only the Prompt
  • FE - Create Context - message list of previous Points (Prompt+Response)
    • FE - Send new Point and the messageList to BE
    • BE - Save new Point to DB
    • BE - Send Prompt to OpenAI
    • BE - Receive the Response from OpenAI
    • BE - Save Response to DB (with the new Point)
    • BE- Send the new Point (with updated Response) to FE
    • FE - Show updated new Point on Screen - both Prompt and Response
  1. New shard - prompt
  2. Existing Shard - prompt

Updated by Tomislav Pleše 3 months ago · 19 revisions