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:
Nathan.fooo 2024-07-08 13:19:13 +08:00 committed by GitHub
parent 2ecc2a67a9
commit 521fffd97c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 317 additions and 2385 deletions

View file

@ -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,
}