Merge pull request #260 from farooqpk/feature/ollama-url-input

feat: Set Ollama URL from ollamaInfo in PlaygroundEmpty
This commit is contained in:
Muhammed Nazeem
2024-11-27 12:57:27 +05:30
committed by GitHub

View File

@@ -39,6 +39,13 @@ export const PlaygroundEmpty = () => {
enabled: checkOllamaStatus
})
useEffect(() => {
if (ollamaInfo?.ollamaURL) {
setOllamaURL(ollamaInfo.ollamaURL)
}
}, [ollamaInfo])
if (!checkOllamaStatus) {
return (
<div className="mx-auto sm:max-w-xl px-4 mt-10">