• Wispy2891@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    Each API call has absolutely no idea of the previous context, the program that manages the chat simply inserts the whole history of the chat (or a ai-resumed one) inside each message.

    If you need 10 different roles then the program sends a single “system” prompt, with then 10 different “user” prompts with the different logic to execute (plus the context, if needed)