mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: do not use the cell of given summary field (#5362)
* chore: do not use the cell of given summary field * chore: update docs
This commit is contained in:
parent
7e83d598f8
commit
bd62a161be
@ -424,15 +424,19 @@ impl DatabaseManager {
|
|||||||
if let Some(row) = database.get_row(&view_id, &row_id) {
|
if let Some(row) = database.get_row(&view_id, &row_id) {
|
||||||
let fields = database.get_fields(&view_id, None);
|
let fields = database.get_fields(&view_id, None);
|
||||||
for field in fields {
|
for field in fields {
|
||||||
|
// When summarizing a row, skip the content in the "AI summary" cell; it does not need to
|
||||||
|
// be summarized.
|
||||||
|
if field.id != field_id {
|
||||||
if let Some(cell) = row.cells.get(&field.id) {
|
if let Some(cell) = row.cells.get(&field.id) {
|
||||||
summary_row_content.insert(field.name.clone(), stringify_cell(cell, &field));
|
summary_row_content.insert(field.name.clone(), stringify_cell(cell, &field));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Call the cloud service to summarize the row.
|
// Call the cloud service to summarize the row.
|
||||||
trace!(
|
trace!(
|
||||||
"[AI]: summarize row:{}, content:{:?}",
|
"[AI]:summarize row:{}, content:{:?}",
|
||||||
row_id,
|
row_id,
|
||||||
summary_row_content
|
summary_row_content
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user