Skip to content

Instantly share code, notes, and snippets.

View statikkkkk's full-sized avatar

Ryan Li statikkkkk

  • Microsoft Research
  • Redmond, WA
View GitHub Profile
@statikkkkk
statikkkkk / sse_patcher.py
Created April 25, 2026 23:58
LiteLLM SSE patcher: fixes missing Responses API wrapper events for github_copilot/* models so OpenAI Codex CLI works
#!/usr/bin/env python3
"""
SSE patcher: sits between Codex and LiteLLM, fixes Responses API streaming
by injecting the missing wrapper events that Codex requires.
Run: uv run --with fastapi --with httpx --with uvicorn python sse_patcher.py
Then point Codex at http://localhost:4001/v1
"""
import json
import uuid
@statikkkkk
statikkkkk / Li, DL Handbook, Simple NN.ipynb
Created November 20, 2018 17:29
Li, DL Handbook, Simple NN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@statikkkkk
statikkkkk / Li, DL Handbook, Baseline.ipynb
Created November 19, 2018 16:57
Baseline with scikit-learn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@statikkkkk
statikkkkk / Li, Practical Guide, 2,1.ipynb
Created September 5, 2018 21:42
Hyperdimension Visualization with Hypertools
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@statikkkkk
statikkkkk / A Experiment on Subgradient Desent, ISTA, and FISTA.ipynb
Created October 22, 2017 19:35
A Experiment on Subgradient Desent, ISTA, and FISTA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@statikkkkk
statikkkkk / kaczmarz.ipynb
Last active April 10, 2018 08:52
Kaczmarz Randomized SGD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.