ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.67k stars 220 forks source link

Local running lamma3. httpx.connecterror [wrong ssl] #174

Open chkp-orendi opened 3 weeks ago

chkp-orendi commented 3 weeks ago

Hello :)

I'm trying to run locally lamma3 on ubuntu 20.04. I installed everything and it all seem to be working. Running ollama run llama3:8b let me chat with him. And running ollama serve seems to work.

I tried coppying this code:

import ollama
response = ollama.chat(model='llama3', messages=[
  {
    'role': 'user',
    'content': 'Why is the sky blue?',
  },
])
print(response['message']['content'])

But I get an error: httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)

image image

If you need any more information let me know. Thank you :)