llm examples

This commit is contained in:
Per Stark
2024-10-08 14:57:12 +02:00
parent 18130de9db
commit 4256a1bcb2
2 changed files with 147 additions and 79 deletions

View File

@@ -92,6 +92,10 @@ impl IngressObject {
let content = tokio::fs::read_to_string(&file_info.path).await?;
Ok(content)
}
"text/x-rust" => {
let content = tokio::fs::read_to_string(&file_info.path).await?;
Ok(content)
}
// Handle other MIME types as needed
_ => Err(IngressContentError::UnsupportedMime(file_info.mime_type.clone())),
}