ollama_cloud.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your Ollama API key
4
Run the example
Save the code above as
ollama_cloud.py, then run:Run gpt-oss:120b on Ollama Cloud with OLLAMA_API_KEY instead of a local Ollama server.
Set up your virtual environment
Install dependencies
Export your Ollama API key
Run the example
ollama_cloud.py, then run: