Merge pull request #147 from presenton/fix/ollama-model-config

fix(nextjs): sets ollama url on when llm changes to ollama to make sure llmconfig has ollama url
This commit is contained in:
Saurav Niraula 2025-07-27 01:57:49 +05:45 committed by GitHub
commit 4fff0db579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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]);