Google (@assdwaaaa)将Github Models添加到one-api等分发平台 中发帖

不知道大家都拿到Github Models的白嫖资格了没? 
Github Models提供的API格式是不带v1前缀的,因此无法直接在one-api等客户端中直接使用(大家默认都是用的v1/chat/completions), 这里提供一个简单的方法来实现,Nginx做转发:
server {
listen 80;
server_name yourdomain.com;

location /v1/chat/completions {
proxy_pass https://models.inference.ai.azure.com/chat/completions;
proxy_set_header Host models.inference.ai.azure.com;
proxy_set_header X-Rea...