feat: IoD search process HTML/PDF content

This commit is contained in:
Nex Zhu
2025-02-14 23:24:27 +08:00
parent e8471f1802
commit a56e46a98d
3 changed files with 77 additions and 23 deletions

View File

@@ -9,6 +9,7 @@ import { searxngSearch } from "./search-engines/searxng"
import { braveAPISearch } from "./search-engines/brave-api"
import { webBaiduSearch } from "./search-engines/baidu"
import { searchIod } from "./iod"
import type { IodRegistryEntry } from "~/types/iod"
const getHostName = (url: string) => {
try {
@@ -72,13 +73,7 @@ export const getSystemPromptForWeb = async (
// .join("\n")
}
let iodSearchResults: {
doId: string
name: string
url?: string
// pdf_url?: string
description: string
}[] = []
let iodSearchResults: IodRegistryEntry[] = []
// let search_results_iod = ""
if (iodSearch) {