/
githubmirror
/
ai-legion
Обзор
Документация
Войти
/
githubmirror
/
ai-legion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/module/definitions/web.test.ts
29 строк
742 B
eumemic
update model registry to include gpt-4.1 and adjust default model in parameters; modify test to use string reference for gpt-3.5-turbo
28 май 2025, 02:52
28 май 2025, 02:52
a6bfba1
Код
Авторство
О чём код?
import dotenv from "dotenv"; import { getPageSummary, getSearchResults } from "./web"; dotenv.config(); test.skip( "getPageSummary", async () => { await getPageSummary( "gpt-3.5-turbo", // GPT_4, 1000, "https://xenogothic.com/2022/12/23/patchwork-a-reflection/" // "https://platform.openai.com/docs/guides/completion/inserting-text" // "https://actions.github.io/authentication/", // "https://en.wikipedia.org/wiki/Technological_singularity" ); }, 5 * 60 * 1000 ); test.skip( "getSearchResults", async () => { const results = await getSearchResults(`"e/acc" explanation and sources`); console.log(results?.map((item) => item.title).join("\n")); }, 5 * 60 * 1000 );