fix(nextjs): sets ollama url on when llm changes to ollama to make sure llmconfig has ollama url

This commit is contained in:
sauravniraula 2025-07-27 01:56:30 +05:45
parent dfa0c5977d
commit c890857fd4
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326
2 changed files with 1 additions and 1 deletions

View file

@ -61,7 +61,6 @@ export default function Home() {
isDisabled: true,
text: "Saving Configuration..."
}));
console.log("llmConfig", llmConfig);
await handleSaveLLMConfig(llmConfig);
if (llmConfig.LLM === "ollama" && llmConfig.OLLAMA_MODEL) {
const isPulled = await checkIfSelectedOllamaModelIsPulled(llmConfig.OLLAMA_MODEL);

View file

@ -139,6 +139,7 @@ export default function LLMProviderSelection({
useEffect(() => {
if (llmConfig.LLM === "ollama") {
setOllamaConfigHandler();
fetchOllamaModels();
}
}, [llmConfig.LLM]);