mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
refactor: extract chat plugin to new repo (#5699)
* chore: update ui * chore: update * chore: update * chore: separate to new crate * chore: update commit id * chore: fix compile * chore: bump version
This commit is contained in:
parent
2ecc2a67a9
commit
521fffd97c
40 changed files with 317 additions and 2385 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::local_ai::llm_chat::LocalLLMSetting;
|
||||
use appflowy_local_ai::llm_chat::LocalLLMSetting;
|
||||
use flowy_chat_pub::cloud::{
|
||||
ChatMessage, RelatedQuestion, RepeatedChatMessage, RepeatedRelatedQuestion,
|
||||
};
|
||||
|
@ -267,3 +267,19 @@ pub enum CompletionTypePB {
|
|||
MakeLonger = 4,
|
||||
ContinueWriting = 5,
|
||||
}
|
||||
|
||||
#[derive(Default, ProtoBuf, Clone, Debug)]
|
||||
pub struct ChatStatePB {
|
||||
#[pb(index = 1)]
|
||||
pub model_type: ModelTypePB,
|
||||
|
||||
#[pb(index = 2)]
|
||||
pub available: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, ProtoBuf_Enum, Default)]
|
||||
pub enum ModelTypePB {
|
||||
LocalAI = 0,
|
||||
#[default]
|
||||
RemoteAI = 1,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue