Skip to content

Instantly share code, notes, and snippets.

@ben1one
ben1one / azure-openai-proxy.py
Created July 5, 2025 07:18 — forked from BennyThink/azure-openai-proxy.py
convert azure openai to openai in python
#!/usr/bin/env python3
# coding: utf-8
import os
from sanic import Sanic, json as json_response, raw
from sanic.request import Request
import httpx
client = httpx.AsyncClient(
http2=True,