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
commit 8d12e9152c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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">