Compare commits

...

3 Commits

Author SHA1 Message Date
1361ff9ea1 Merge 8aaee2c40c into e6b87f89ec 2025-03-10 18:35:02 +01:00
e6b87f89ec feat(sample-config): add custom openai model name 2025-03-08 20:08:27 +05:30
8aaee2c40c feat(app): support complex title 2025-02-15 16:48:21 +08:00
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ API_KEY = ""
[MODELS.CUSTOM_OPENAI]
API_KEY = ""
API_URL = ""
MODEL_NAME = ""
[MODELS.OLLAMA]
API_URL = "" # Ollama API URL - http://host.docker.internal:11434

View File

@ -65,7 +65,7 @@ export const getDocumentsFromLinks = async ({ links }: { links: string[] }) => {
const splittedText = await splitter.splitText(parsedText);
const title = res.data
.toString('utf8')
.match(/<title>(.*?)<\/title>/)?.[1];
.match(/<title.*>(.*?)<\/title>/)?.[1];
const linkDocs = splittedText.map((text) => {
return new Document({