Merge pull request #260 from farooqpk/feature/ollama-url-input
feat: Set Ollama URL from ollamaInfo in PlaygroundEmpty
This commit is contained in:
commit
8d12e9152c
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user