feat: IoD search process HTML/PDF content
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user