Skip to content

Instantly share code, notes, and snippets.

View zning1994's full-sized avatar
🎯
Focusing DevOps, Machine Intelligence and Blog

ZHANG Ning zning1994

🎯
Focusing DevOps, Machine Intelligence and Blog
View GitHub Profile
@zning1994
zning1994 / openai-proxy.py
Created May 13, 2023 10:07 — forked from wujianguo/openai-proxy.py
openai chatgpt python flask proxy 代理,支持 SSE
from flask import Flask, request, Response
import requests, logging
_FIELD_SEPARATOR = ':'
class SSEClient(object):
"""Implementation of a SSE client.
See http://www.w3.org/TR/2009/WD-eventsource-20091029/ for the
specification.
"""
@wujianguo
wujianguo / openai-proxy.py
Last active May 21, 2023 12:03
openai chatgpt python flask proxy 代理,支持 SSE
from flask import Flask, request, Response
import requests, logging
_FIELD_SEPARATOR = ':'
class SSEClient(object):
"""Implementation of a SSE client.
See http://www.w3.org/TR/2009/WD-eventsource-20091029/ for the
specification.
"""
@zning1994
zning1994 / 2019-7-3_CentOS7.6升级5内核.sh
Created July 3, 2019 15:21
2019-7-3_CentOS7.6升级5内核
#!/bin/bash
#
# Title: CentOS7.6_x64_upgrade_kernel_script
# Author: ZNing
# Date: 2019-7-3 23:13:09
# Pass on the Aliyun CentOS7.6 x64
# You should run this script three times. The first is yum update, the second is kernel upgrade to 5, the final one is optional when you decided to maunal which is deleting old kernel.
# Having fun to using it. (*^▽^*) Best wishes from Misaka Mikoto and Misaka 10086.
clear;
@Akagi201
Akagi201 / docker.md
Last active April 17, 2020 06:10
[docker]