mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-28 06:22:56 +00:00
change the document type of metadata to be an empty enum value
This commit is contained in:
parent
f77525a996
commit
5e74454bc8
@ -7,6 +7,9 @@
|
||||
}
|
||||
|
||||
<ReadPDFContent @bind-PDFContent="@this.inputText"/>
|
||||
|
||||
<ReadFileContent @bind-FileContent="@this.inputText"/>
|
||||
|
||||
<MudTextSwitch Label="@T("Live translation")" @bind-Value="@this.liveTranslation" LabelOn="@T("Live translation")" LabelOff="@T("No live translation")"/>
|
||||
@if (this.liveTranslation)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ pub enum Metadata {
|
||||
Text { line_number: usize },
|
||||
Pdf { page_number: usize },
|
||||
Spreadsheet { sheet_name: String, row_number: usize },
|
||||
Document,
|
||||
Document {},
|
||||
Image,
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ async fn convert_with_pandoc(
|
||||
match String::from_utf8(output.stdout.clone()) {
|
||||
Ok(content) => yield Ok(Chunk {
|
||||
content,
|
||||
metadata: Metadata::Document,
|
||||
metadata: Metadata::Document {},
|
||||
}),
|
||||
Err(e) => yield Err(e.into()),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user