Python Example
Python example for integrating the OLLM API
# OLLM API Example
from openai import OpenAI
client = OpenAI(
base_url="https://api.ollm.com/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="near/GLM-4.6",
messages=[{"role": "user", "content": "Why is the sky blue?"}]
)
print(response.choices[0].message.content)Community & further resources
Here you will find community-driven examples, SDKs or tutorials for Python in the future.
Example community project (GitHub)