المشاريع
عرض على GitHub
tech-shrimp/deno-api-proxy
حول
使用Deno将大模型的API 代理到国内,解决地区受限问题 Use Deno to proxy Open AI, Claude, Groq and other APIs to mainland China, breaking geographical restrictions.
الأنظمة والبنية التحتيةالنمو المقاس للنجوم
- خلال 24 ساعة
- -١
- خلال 7 أيام
- -١
- خلال 15 يومًا
- -١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلDeno API代理
Deno API Proxy
English Version
作者:技术爬爬虾
B站,YouTube,抖音,公众号 全网同名。转载请注明作者。
项目简介
使用Deno将Open AI, Claude, Groq等API代理到国内,打破地域限制。
Deno部署(推荐)
- 登录/注册 https://dash.deno.com/account/projects
- 点击右上角的New Playground
- 把main.ts里面所有代码复制进去
- 点击 Save & Deploy
- 查看部署后的服务的域名(长这样:xxx.deno.dev)
- 将域名,需要代理的服务名字,API Key填入下方命令中
代理 OepnAI
curl --location 'https://YOUR-DOMAIN/api.openai.com/v1/chat/completions' \
--header 'Authorization: Bearer YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a test assistant."
},
{
"role": "user",
"content": "Testing. Just say hi and nothing else."
}
],
"model": "gemini-2.0-flash-exp"
}'
代理Groq
curl --location 'https://YOUR-DOMAIN/api.groq.com/v1/chat/completions' \
--header 'Authorization: Bearer YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a test assistant."
},
{
"role": "user",
"content": "Testing. Just say hi and nothing else."
}
],
"model": "gemini-2.0-flash-exp"
}'
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…