File size: 531 Bytes
db6dcad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python3
"""
Quick test of Ollama with a simple prompt
"""
import ollama

def quick_test():
    print("πŸ” Quick Ollama test...")
    
    try:
        # Very simple test
        response = ollama.generate(
            model='llama2',
            prompt='Say "Hello" in one word only.'
        )
        
        print(f"βœ… Response: {response['response']}")
        return True
        
    except Exception as e:
        print(f"❌ Failed: {e}")
        return False

if __name__ == "__main__":
    quick_test()