addHistory: Add history for chating context
Description
Add history for chating context
Usage
addHistory(history, role = NULL, item = NULL)
Arguments
- history
The history of chat
- role
The role of chat: "user" or "model"
- item
The item of chat: "prompt" or "output"