chore: enable local ai and local ai chat (#5755)

* chore: enable local ai and local ai chat

* chore: config for chat with file

* chore: flutter anaylzer
This commit is contained in:
Nathan.fooo 2024-07-18 20:54:35 +08:00 committed by GitHub
parent f36e3ae378
commit 5bbf174ffd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 1515 additions and 647 deletions

View file

@ -367,7 +367,7 @@ pub struct PendingResourcePB {
}
#[derive(Default, ProtoBuf, Clone, Debug)]
pub struct PluginStatePB {
pub struct LocalAIPluginStatePB {
#[pb(index = 1)]
pub state: RunningStatePB,
}
@ -392,3 +392,21 @@ impl From<RunningState> for RunningStatePB {
}
}
}
#[derive(Default, ProtoBuf, Clone, Debug)]
pub struct LocalAIPB {
#[pb(index = 1)]
pub enabled: bool,
}
#[derive(Default, ProtoBuf, Clone, Debug)]
pub struct LocalAIChatPB {
#[pb(index = 1)]
pub enabled: bool,
#[pb(index = 2)]
pub file_enabled: bool,
#[pb(index = 3)]
pub plugin_state: LocalAIPluginStatePB,
}