Spaces:
Paused

ASI / README.md
muzsang's picture
Upload 34 files
3069ef4 verified
|
Raw History Blame Contribute Delete
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 网页版。

使用说明

  1. Fork本项目到您自己的Hugging Face Space

  2. 上传认证文件:

    • 在本地运行 python launch_camoufox.py --debug 获取认证文件
    • 登录您的Google账号
    • 保存认证文件
    • 通过Hugging Face界面上传到 auth_profiles/active/ 目录
  3. 重启Space:

    • 上传认证文件后,在Hugging Face界面重启空间
  4. 使用API:

    • API端点: https://你的用户名-你的项目名.hf.space/v1/chat/completions
    • Web界面: https://你的用户名-你的项目名.hf.space/

注意事项

  • 认证文件包含敏感信息,请设置Space为私有
  • 认证可能会定期过期,需要更新认证文件
  • 该服务仅供学习研究使用

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference