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:
commit
4fff0db579
2 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ export default function LLMProviderSelection({
|
|||
|
||||
useEffect(() => {
|
||||
if (llmConfig.LLM === "ollama") {
|
||||
setOllamaConfigHandler();
|
||||
fetchOllamaModels();
|
||||
}
|
||||
}, [llmConfig.LLM]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue