Skip to contents

Add history for chating context

Usage

addHistory(history, role, item)

Arguments

history

The history of chat

role

The role of chat: "user" or "model"

item

The item of chat: "prompt" or "output"

Value

The history of chat