update for custom model, ollama

This commit is contained in:
duanfuxiang
2025-03-20 12:44:53 +08:00
parent 76ecca0da9
commit 570e8d9564
9 changed files with 155 additions and 115 deletions

View File

@@ -1141,7 +1141,9 @@ export const GetEmbeddingProviders = (): ApiProvider[] => {
ApiProvider.OpenAI,
ApiProvider.SiliconFlow,
ApiProvider.Google,
ApiProvider.AlibabaQwen
ApiProvider.AlibabaQwen,
ApiProvider.OpenAICompatible,
ApiProvider.Ollama,
]
}

View File

@@ -210,7 +210,6 @@ export async function webSearch(query: string, serperApiKey: string, jinaApiKey:
}
}
// todo: update
export async function fetchUrlsContent(urls: string[], apiKey: string): Promise<string> {
return new Promise((resolve) => {
const results = urls.map(async (url) => {