2025-04-01 08:33:50 +00:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "color-scheme" content = "light dark" >
2025-04-01 09:09:40 +00:00
< script defer src = "https://umami.molodetz.nl/script.js" data-website-id = "4908032d-2df9-4157-a7dd-99ba4b08d0d1" ></ script >
2025-04-01 08:56:11 +00:00
< link rel = "stylesheet" href = "https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.yellow.min.css" >
2025-04-01 08:33:50 +00:00
< title > Ollama Crowd-Funded Server</ title >
</ head >
< body >
< main class = "container" >
< h1 > Ollama Crowd-Funded Server</ h1 >
2025-04-01 08:56:11 +00:00
< p > Welcome to the Ollama Crowd-Funded Server. You can use this URL with the official Ollama JavaScript or Python clients to communicate with an Ollama server. The Ollama servers are generously provided by individuals.</ p >
< h2 > Using this Ollama Server</ h2 >
< p > Simply use the original client! The only difference is the URL.</ p >
2025-04-01 08:33:50 +00:00
< code >
< pre >
from ollama import Client
client = Client(
host="https://ollama.molodetz.nl"
)
messages = []
def chat(message):
if message:
messages.append({'role': 'user', 'content': message})
content = ''
for response in client.chat(model='qwen2.5-coder:0.5b', messages=messages, stream=True):
content += response.message.content
print(response.message.content, end='', flush=True)
messages.append({'role': 'assistant', 'content': content})
print("")
while True:
message = input("You: ")
chat(message)
</ pre >
</ code >
< h2 > Donate Your Resources</ h2 >
2025-04-01 08:56:11 +00:00
< p > You can contribute your resources to the server by using the following script:</ p >
< code >< pre > #client.py</ pre ></ code >
2025-04-01 09:11:56 +00:00
< h2 > Visit project page</ h2 >
Source code is < a href = "https://molodetz.nl/project/uberlama/README.md.html" > here</ a > .
2025-04-01 08:33:50 +00:00
</ main >
</ body >
</ html >