mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
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:
parent
f36e3ae378
commit
5bbf174ffd
38 changed files with 1515 additions and 647 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue