Skip to content

Commit

Permalink
chore: fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Aug 9, 2024
1 parent 2534682 commit 8983d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion appflowy-local-ai/src/chat_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl AppFlowyLocalAI {
chat_id: &str,
file_path: Option<PathBuf>,
file_content: Option<String>,
metadata: Option<HashMap<String, serde_json::Value>>,
) -> Result<(), PluginError> {
let mut file_path_str = None;
if let Some(file_path) = file_path {
Expand Down Expand Up @@ -169,7 +170,7 @@ impl AppFlowyLocalAI {
file_content
);
operation
.index_file(chat_id, file_path_str, file_content, None)
.index_file(chat_id, file_path_str, file_content, metadata)
.await?;
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion appflowy-local-ai/tests/chat_test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async fn ci_chat_with_pdf() {
let pdf = get_asset_path("AppFlowy_Values.pdf");
test
.local_ai
.index_file(&chat_id, Some(pdf), None)
.index_file(&chat_id, Some(pdf), None, None)
.await
.unwrap();

Expand Down

0 comments on commit 8983d68

Please sign in to comment.