Add @langchain/core dependency and update imports***
***Update SidepanelRouting to use dark mode*** ***Add image support to PlaygroundMessage component
This commit is contained in:
@@ -68,11 +68,18 @@ export const fetchModels = async () => {
|
||||
}
|
||||
|
||||
export const setOllamaURL = async (ollamaURL: string) => {
|
||||
await chromeRunTime(cleanUrl(ollamaURL))
|
||||
await storage.set("ollamaURL", cleanUrl(ollamaURL))
|
||||
let formattedUrl = ollamaURL
|
||||
if (formattedUrl.startsWith("http://localhost:")) {
|
||||
formattedUrl = formattedUrl.replace(
|
||||
"http://localhost:",
|
||||
"http://127.0.0.1:"
|
||||
)
|
||||
}
|
||||
await chromeRunTime(cleanUrl(formattedUrl))
|
||||
await storage.set("ollamaURL", cleanUrl(formattedUrl))
|
||||
}
|
||||
|
||||
export const systemPromptForNonRag = async () => {
|
||||
const prompt = await storage.get("systemPromptForNonRag")
|
||||
return prompt
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user