Save conversations to ~/.config/zed/conversations
Still need to implement loading / listing. I'd really be rather write operations to a database. Maybe we should be auto-saving? Integrating with panes? I just did the simple thing for now.
This commit is contained in:
parent
75b5ac8488
commit
882009bc75
4 changed files with 61 additions and 6 deletions
|
@ -14,6 +14,13 @@ struct OpenAIRequest {
|
|||
stream: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct SavedConversation {
|
||||
zed: String,
|
||||
version: String,
|
||||
messages: Vec<RequestMessage>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
|
||||
struct RequestMessage {
|
||||
role: Role,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue