|
Download README.md from muzsang/ASI: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/muzsang/ASI/resolve/main/README.md
- Command line
-
hf download hf://spaces/muzsang/ASI/README.md
-
curl -L -o README.md https://huggingface.co/spaces/muzsang/ASI/resolve/main/README.md
1.16 kB
metadata
title: AI Studio Proxy API
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: docker
sdk_version: latest
app_port: 7860
pinned: false
AI Studio Proxy API
这是一个基于 Python + FastAPI + Playwright + Camoufox 的代理服务器,旨在通过模拟 OpenAI API 的方式间接访问 Google AI Studio 网页版。
使用说明
Fork本项目到您自己的Hugging Face Space
上传认证文件:
- 在本地运行
python launch_camoufox.py --debug获取认证文件 - 登录您的Google账号
- 保存认证文件
- 通过Hugging Face界面上传到
auth_profiles/active/目录
- 在本地运行
重启Space:
- 上传认证文件后,在Hugging Face界面重启空间
使用API:
- API端点:
https://你的用户名-你的项目名.hf.space/v1/chat/completions - Web界面:
https://你的用户名-你的项目名.hf.space/
- API端点:
注意事项
- 认证文件包含敏感信息,请设置Space为私有
- 认证可能会定期过期,需要更新认证文件
- 该服务仅供学习研究使用
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference