Skip to content

Instantly share code, notes, and snippets.

View Colossus14's full-sized avatar

Arthur Roth Colossus14

View GitHub Profile
@Colossus14
Colossus14 / ollama-nothink-proxy.py
Created April 15, 2026 07:06
Ollama think:false proxy — translates OpenAI /v1/chat/completions to native /api/chat with think:false. Required for Gemma 4 models via Mjolnir AI or other OpenAI-compat clients.
#!/usr/bin/env python3
"""
Tiny reverse proxy: translates OpenAI /v1/chat/completions requests
into Ollama native /api/chat requests with think:false.
Listens on port 11435, forwards to localhost:11434.
"""
import json
import http.server
@Colossus14
Colossus14 / thunderstorm-collector-fixes.patch
Created February 22, 2026 12:24
Thunderstorm collector fixes patch
From f2634b8b44263418fbe579282a6b10e922208f74 Mon Sep 17 00:00:00 2001
From: Colossus14 <colossus14@users.noreply.github.com>
Date: Sun, 22 Feb 2026 02:49:55 +0100
Subject: [PATCH 1/2] Add bash collector test suite (28 tests) and fix max-age
CLI override bug
Test suite (scripts/tests/run_tests.sh):
- 28 tests across validation, upload modes, filtering, robustness, and integration
- Two modes: stub server (CI) and external server (real Thunderstorm)
- Starts/stops thunderstorm-stub-server automatically in CI mode