Configure automatic saving of conversation histories
Pinocchio can automatically save your conversation histories to persistent storage. This allows you to review past conversations and maintain a record of your interactions.
Set autosave options using the --autosave flag with key-value pairs:
pinocchio --autosave enabled:yes,path:/custom/path,template:{{.Time.Format "150405"}}-{{.ConversationID}}.json
Available options:
enabled: "yes" or "no" (default: "no")path: Directory path string for save location (default: ~/.pinocchio/history)template: Custom template pattern for filename (default: {{.Year}}/{{.Month}}/{{.Day}}/{{.Time.Format "150405"}}-{{.ConversationID}}.json)Add to ~/.pinocchio/config.yaml:
autosave:
enabled: yes
path: /custom/path/to/history # optional
template: custom-template # optional
The save path supports Go template syntax with these variables:
{{.Year}}: Year (YYYY){{.Month}}: Month (MM){{.Day}}: Day (DD){{.Time}}: Conversation start time{{.ConversationID}}: Unique conversation identifierWhen enabled without a custom path:
~/.pinocchio/history directoryYYYY/MM/DDEach save file contains:
This allows for future browsing, searching, and analysis of conversation histories.