mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user