feat: support mention a document as context on local ai (#5913)

* feat: support mention a document as context on local ai

* chore: rename

* chore: fix test

* chore: fix test
This commit is contained in:
Nathan.fooo
2024-08-09 21:55:20 +08:00
committed by GitHub
parent f84473c857
commit 758c304a74
39 changed files with 721 additions and 672 deletions

View File

@ -26,14 +26,14 @@ pub trait ChatCloudService: Send + Sync + 'static {
chat_id: &str,
) -> FutureResult<(), FlowyError>;
fn create_question(
async fn create_question(
&self,
workspace_id: &str,
chat_id: &str,
message: &str,
message_type: ChatMessageType,
metadata: Vec<ChatMessageMetadata>,
) -> FutureResult<ChatMessage, FlowyError>;
metadata: &[ChatMessageMetadata],
) -> Result<ChatMessage, FlowyError>;
fn create_answer(
&self,