mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
Revert "Image tag fix for real this time (#4540)"
This reverts commit eb975bb89c.
This commit is contained in:
@@ -124,10 +124,9 @@ export function Autocomplete(props: {
|
||||
(item): AutocompleteOption => ({
|
||||
display: Locale.truncateMiddle(item, width),
|
||||
onSelect: () => {
|
||||
const mime = Bun.file(item).type || "text/plain"
|
||||
insertPart(item, {
|
||||
type: "file",
|
||||
mime,
|
||||
mime: "text/plain",
|
||||
filename: item,
|
||||
url: `file://${process.cwd()}/${item}`,
|
||||
source: {
|
||||
|
||||
Reference in New Issue
Block a user