fix: Swap order of storage set and url rewrite in setOllamaURL function

This commit is contained in:
n4ze3m 2024-12-28 13:03:30 +05:30
parent a8c84f1447
commit eed1a5a0d1

View File

@ -231,8 +231,8 @@ export const setOllamaURL = async (ollamaURL: string) => {
"http://127.0.0.1:" "http://127.0.0.1:"
) )
} }
await urlRewriteRuntime(cleanUrl(formattedUrl))
await storage.set("ollamaURL", cleanUrl(formattedUrl)) await storage.set("ollamaURL", cleanUrl(formattedUrl))
await urlRewriteRuntime(cleanUrl(formattedUrl))
} }
export const systemPromptForNonRag = async () => { export const systemPromptForNonRag = async () => {