diff --git a/README.md b/README.md index 18c9f84..9e94028 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,5 @@ # 🚀 Perplexica - An AI-powered search engine 🔎 -
- Special thanks to: -
-
- - Warp sponsorship - - -### [Warp, the AI Devtool that lives in your terminal](https://www.warp.dev/perplexica) - -[Available for MacOS, Linux, & Windows](https://www.warp.dev/perplexica) - -
- -
- [![Discord](https://dcbadge.vercel.app/api/server/26aArMy8tT?style=flat&compact=true)](https://discord.gg/26aArMy8tT) ![preview](.assets/perplexica-screenshot.png?) diff --git a/src/lib/providers/openai.ts b/src/lib/providers/openai.ts index 61621c3..e68e574 100644 --- a/src/lib/providers/openai.ts +++ b/src/lib/providers/openai.ts @@ -30,6 +30,18 @@ const openaiChatModels: Record[] = [ displayName: 'GPT-4 omni mini', key: 'gpt-4o-mini', }, + { + displayName: 'GPT 4.1 nano', + key: 'gpt-4.1-nano', + }, + { + displayName: 'GPT 4.1 mini', + key: 'gpt-4.1-mini', + }, + { + displayName: 'GPT 4.1', + key: 'gpt-4.1', + }, ]; const openaiEmbeddingModels: Record[] = [ diff --git a/src/lib/utils/documents.ts b/src/lib/utils/documents.ts index ad64180..93eb451 100644 --- a/src/lib/utils/documents.ts +++ b/src/lib/utils/documents.ts @@ -64,7 +64,7 @@ export const getDocumentsFromLinks = async ({ links }: { links: string[] }) => { const splittedText = await splitter.splitText(parsedText); const title = res.data .toString('utf8') - .match(/(.*?)<\/title>/)?.[1]; + .match(/<title.*>(.*?)<\/title>/)?.[1]; const linkDocs = splittedText.map((text) => { return new Document({