feat: Set Ollama URL from ollamaInfo in PlaygroundEmpty
This commit is contained in:
		
							parent
							
								
									2452259189
								
							
						
					
					
						commit
						38979d979b
					
				| @ -39,6 +39,13 @@ export const PlaygroundEmpty = () => { | |||||||
|     enabled: checkOllamaStatus |     enabled: checkOllamaStatus | ||||||
|   }) |   }) | ||||||
| 
 | 
 | ||||||
|  |   useEffect(() => { | ||||||
|  |     if (ollamaInfo?.ollamaURL) { | ||||||
|  |       setOllamaURL(ollamaInfo.ollamaURL) | ||||||
|  |     } | ||||||
|  |   }, [ollamaInfo]) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|   if (!checkOllamaStatus) { |   if (!checkOllamaStatus) { | ||||||
|     return ( |     return ( | ||||||
|       <div className="mx-auto sm:max-w-xl px-4 mt-10"> |       <div className="mx-auto sm:max-w-xl px-4 mt-10"> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user