gm-2api / static /assets /Docs-BHxtOZ-Z.js
xiaoyukkkk's picture
Upload 19 files
c27057d unverified
import{d as i,h as d,c as r,a as o,F as p,r as q,b as l,A as a,n as c,t as m,e as u}from"./index-FpAi8hA7.js";const x={class:"space-y-6"},b={class:"rounded-3xl border border-border bg-card p-6"},g={class:"mt-6 flex rounded-full border border-border bg-muted/30 p-1 text-xs"},f=["onClick"],v={class:"mt-6 space-y-6 text-sm text-foreground"},y={key:0,class:"space-y-6"},h={key:1,class:"space-y-6"},_={key:2,class:"space-y-6"},T=i({__name:"Docs",setup(w){const e=d("tutorials"),n=[{id:"tutorials",label:"使用教程"},{id:"api",label:"API 文档"},{id:"disclaimer",label:"使用声明"}];return(A,t)=>(u(),r("div",x,[o("section",b,[t[3]||(t[3]=o("div",{class:"flex flex-wrap items-center justify-between gap-3"},[o("div",null,[o("p",{class:"text-base font-semibold text-foreground"},"帮助中心"),o("p",{class:"mt-1 text-xs text-muted-foreground"}," 快速上手与常见问题 ")])],-1)),o("div",g,[(u(),r(p,null,q(n,s=>o("button",{key:s.id,class:c(["flex-1 rounded-full px-4 py-2 font-medium transition-colors",e.value===s.id?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"]),onClick:P=>e.value=s.id},m(s.label),11,f)),64))]),o("div",v,[e.value==="api"?(u(),r("div",y,[...t[0]||(t[0]=[a(`<div class="space-y-2"><p class="text-sm font-semibold">账户配置格式</p><p class="mt-1 text-xs text-muted-foreground"> accounts.json 或环境变量 ACCOUNTS_CONFIG 使用的 JSON 数组 </p><pre class="mt-3 overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">[
{
&quot;id&quot;: &quot;account_1&quot;,
&quot;secure_c_ses&quot;: &quot;CSE.Ad...&quot;,
&quot;csesidx&quot;: &quot;498...&quot;,
&quot;config_id&quot;: &quot;0cd...&quot;,
&quot;host_c_oses&quot;: &quot;&quot;,
&quot;expires_at&quot;: &quot;2026-12-31 23:59:59&quot;
}
]</pre><p class="mt-2 text-xs text-muted-foreground"> 必填:secure_c_ses / csesidx / config_id。id、host_c_oses、expires_at 可选。 </p></div><div class="space-y-2"><p class="text-sm font-semibold">API 对话 curl 格式</p><p class="mt-1 text-xs text-muted-foreground"> 标准的 OpenAI 兼容格式,支持流式和非流式输出。 </p><div class="mt-3"><pre class="overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-2.5-flash&quot;,
&quot;stream&quot;: false,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{ &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;你是一个简洁的助手&quot; },
{ &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;你好,介绍一下这个项目&quot; }
]
}&#39;</pre></div><p class="mt-2 text-xs text-muted-foreground"> 如果未设置 API Key,可省略 Authorization。 </p></div><div class="space-y-2"><p class="text-sm font-semibold">文生图格式(Base64 / URL 输出)</p><p class="mt-1 text-xs text-muted-foreground"> 使用支持文生图的模型,直接给文本提示即可;输出格式由系统设置决定(base64 或 url)。 </p><pre class="mt-3 overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-3-pro-preview&quot;,
&quot;stream&quot;: true,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{ &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;生成一只戴着头盔的猫,赛博风格&quot; }
]
}&#39;</pre></div><div class="space-y-2"><p class="text-sm font-semibold">图生图格式(Base64 / URL 输入)</p><p class="mt-1 text-xs text-muted-foreground"> content 使用多模态数组,image_url 可填 URL 或 data:base64。 </p><div class="mt-3 grid gap-3 md:grid-cols-2"><pre class="overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-3-flash-preview&quot;,
&quot;stream&quot;: false,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{
&quot;role&quot;: &quot;user&quot;,
&quot;content&quot;: [
{ &quot;type&quot;: &quot;text&quot;, &quot;text&quot;: &quot;把图片改成插画风格&quot; },
{ &quot;type&quot;: &quot;image_url&quot;, &quot;image_url&quot;: { &quot;url&quot;: &quot;https://example.com/cat.png&quot; } }
]
}
]
}&#39;</pre><pre class="overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-3-flash-preview&quot;,
&quot;stream&quot;: false,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{
&quot;role&quot;: &quot;user&quot;,
&quot;content&quot;: [
{ &quot;type&quot;: &quot;text&quot;, &quot;text&quot;: &quot;增强画面细节&quot; },
{ &quot;type&quot;: &quot;image_url&quot;, &quot;image_url&quot;: { &quot;url&quot;: &quot;data:image/png;base64,AAA...&quot; } }
]
}
]
}&#39;</pre></div></div><div class="space-y-2"><p class="text-sm font-semibold">读文件格式(URL / Base64)</p><p class="mt-1 text-xs text-muted-foreground"> 适用于 PDF/图片/文本等可读文件,Word/PPT 等可能不支持会被提示转换。大部分文件都可能支持,建议自行测试。 </p><div class="mt-3 grid gap-3 md:grid-cols-2"><pre class="overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-2.5-pro&quot;,
&quot;stream&quot;: false,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{
&quot;role&quot;: &quot;user&quot;,
&quot;content&quot;: [
{ &quot;type&quot;: &quot;text&quot;, &quot;text&quot;: &quot;读取并总结这个文件&quot; },
{ &quot;type&quot;: &quot;image_url&quot;, &quot;image_url&quot;: { &quot;url&quot;: &quot;https://example.com/doc.pdf&quot; } }
]
}
]
}&#39;</pre><pre class="overflow-x-auto whitespace-pre-wrap rounded-2xl border border-border bg-card px-4 py-3 text-xs font-mono scrollbar-slim">curl -X POST &quot;http://localhost:7860/v1/chat/completions&quot; \\
-H &quot;Content-Type: application/json&quot; \\
-H &quot;Authorization: Bearer YOUR_API_KEY&quot; \\
-d &#39;{
&quot;model&quot;: &quot;gemini-2.5-pro&quot;,
&quot;stream&quot;: false,
&quot;temperature&quot;: 0.7,
&quot;top_p&quot;: 1,
&quot;messages&quot;: [
{
&quot;role&quot;: &quot;user&quot;,
&quot;content&quot;: [
{ &quot;type&quot;: &quot;text&quot;, &quot;text&quot;: &quot;读取并摘要&quot; },
{ &quot;type&quot;: &quot;image_url&quot;, &quot;image_url&quot;: { &quot;url&quot;: &quot;data:application/pdf;base64,AAA...&quot; } }
]
}
]
}&#39;</pre></div></div>`,5)])])):l("",!0),e.value==="tutorials"?(u(),r("div",h,[...t[1]||(t[1]=[a(`<div class="space-y-2"><p class="text-sm font-semibold">DuckMail 自动注册教程</p><p class="mt-1 text-xs text-muted-foreground"> DuckMail 是一个临时邮箱服务,可用于自动注册 Google 账号。 </p><div class="mt-3 space-y-3 text-xs text-muted-foreground"><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">步骤 1:配置 DuckMail</p><p class="mt-2">访问 <a href="https://domain.duckmail.sbs/" target="_blank" class="text-primary hover:underline">https://domain.duckmail.sbs/</a>,登录注册后:</p><ul class="mt-2 space-y-1 pl-4"><li>• 添加域名,按照提示进行 DNS 解析</li><li>• 创建自己的密钥(API Key)</li><li>• 前往本系统&quot;配置面板&quot;,找到&quot;DuckMail 配置&quot;部分</li><li>• 填写 DuckMail API Key</li><li>• <strong>推荐:</strong>在&quot;默认注册域名&quot;中填入自己的域名(DuckMail 可能会出现密码错误情况,建议使用自己的域名)</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">步骤 2:开始注册</p><p class="mt-2">前往&quot;账户管理&quot;页面:</p><ul class="mt-2 space-y-1 pl-4"><li>• 点击&quot;添加账户&quot;按钮</li><li>• 选择&quot;自动注册&quot;标签</li><li>• 设置注册数量</li><li>• 勾选同意声明</li><li>• 点击&quot;开始注册&quot;</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">步骤 3:查看进度</p><p class="mt-2">注册过程会自动进行:</p><ul class="mt-2 space-y-1 pl-4"><li>• 系统会自动打开&quot;任务状态&quot;弹窗</li><li>• 可以查看实时日志和进度</li><li>• 注册完成后会显示成功/失败数量</li><li>• 成功的账号会自动添加到账户列表</li></ul></div></div></div><div class="space-y-2"><p class="text-sm font-semibold">常见问题</p><div class="mt-3 space-y-3 text-xs text-muted-foreground"><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">❓ 自动注册/刷新失败怎么办?</p><p class="mt-2">关闭无头浏览器可以直接看到问题所在:</p><ul class="mt-2 space-y-1 pl-4"><li>• 前往&quot;配置面板&quot;,找到&quot;自动化配置&quot;部分</li><li>• 取消勾选&quot;无头模式&quot;</li><li>• 重新执行注册/刷新操作,观察浏览器窗口</li></ul><p class="mt-3 font-medium text-foreground">可能的原因:</p><ul class="mt-2 space-y-1 pl-4"><li>• <strong>IP 被检测拦截:</strong>同一 IP 多次注册有风控,建议更换合适的 IP</li><li>• <strong>验证码问题:</strong>Google 可能要求人机验证</li><li>• <strong>网络问题:</strong>检查网络连接是否稳定</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">❓ 503 Service Unavailable 错误</p><p class="mt-2">如果后台日志出现以下错误:</p><pre class="mt-2 overflow-x-auto whitespace-pre-wrap rounded-xl border border-border bg-card px-3 py-2 text-[11px] font-mono">INFO: 127.0.0.1:7860 - &quot;GET /admin/register/current HTTP/1.1&quot; 503 Service Unavailable
INFO: 127.0.0.1:7860 - &quot;GET /admin/login/current HTTP/1.1&quot; 503 Service Unavailable
INFO: 127.0.0.1:7860 - &quot;POST /admin/register/start HTTP/1.1&quot; 503 Service Unavailable</pre><p class="mt-3 font-medium text-foreground">解决方法:</p><ul class="mt-2 space-y-1 pl-4"><li>• 这是 undetected-chromedriver 没有正常启动导致的</li><li>• 在虚拟环境内重新安装依赖:<code class="rounded bg-card px-1.5 py-0.5 font-mono text-[11px]">pip install -r requirements.txt</code></li><li>• 删除之前的进程(检查是否有残留的 Chrome 进程)</li><li>• 重新启动服务</li></ul></div></div></div>`,2)])])):l("",!0),e.value==="disclaimer"?(u(),r("div",_,[...t[2]||(t[2]=[a('<div class="space-y-2"><p class="text-sm font-semibold">使用声明与免责条款</p><div class="mt-3 space-y-3 text-xs text-muted-foreground leading-relaxed"><div class="rounded-2xl border border-rose-200 bg-rose-50 p-4"><p class="font-medium text-rose-600">⚠️ 严禁滥用:禁止将本工具用于商业用途或任何形式的滥用(无论规模大小)</p></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">本工具严禁用于以下行为:</p><ul class="mt-2 space-y-1 pl-4"><li>• 商业用途或盈利性使用</li><li>• 任何形式的批量操作或自动化滥用(无论规模大小)</li><li>• 破坏市场秩序或恶意竞争</li><li>• 违反 Google 服务条款的任何行为</li><li>• 违反 Microsoft 服务条款的任何行为</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">违规后果</p><p class="mt-2">滥用行为可能导致账号永久封禁、法律追责,一切后果由使用者自行承担。</p></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">📖 合法用途</p><p class="mt-2">本项目仅限于以下场景:</p><ul class="mt-2 space-y-1 pl-4"><li>• 个人学习与技术研究</li><li>• 浏览器自动化技术探索</li><li>• 非商业性技术交流</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">⚖️ 法律责任</p><ul class="mt-2 space-y-2 pl-4"><li><strong>使用者责任:</strong>使用本工具产生的一切后果(包括但不限于账号封禁、数据损失、法律纠纷)由使用者完全承担</li><li><strong>合规义务:</strong>使用者必须遵守所在地法律法规及第三方服务条款(包括但不限于 Google Workspace、Microsoft 365 等服务条款)</li><li><strong>作者免责:</strong>作者不对任何违规使用、滥用行为或由此产生的后果承担责任</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">📋 技术声明</p><ul class="mt-2 space-y-1 pl-4"><li>• <strong>无担保:</strong>本项目按&quot;现状&quot;提供,不提供任何形式的担保</li><li>• <strong>第三方依赖:</strong>依赖的第三方服务(如 DuckMail API、Microsoft Graph API 等)可用性不受作者控制</li><li>• <strong>维护权利:</strong>作者保留随时停止维护、变更功能或关闭项目的权利</li></ul></div><div class="rounded-2xl border border-border bg-muted/30 p-4"><p class="font-medium text-foreground">🔗 相关服务条款</p><p class="mt-2">使用本工具时,您必须同时遵守以下第三方服务的条款:</p><ul class="mt-2 space-y-1 pl-4"><li>• <a href="https://policies.google.com/terms" target="_blank" class="text-primary hover:underline">Google 服务条款</a></li><li>• <a href="https://workspace.google.com/terms/service-terms.html" target="_blank" class="text-primary hover:underline">Google Workspace 附加条款</a></li><li>• <a href="https://www.microsoft.com/servicesagreement" target="_blank" class="text-primary hover:underline">Microsoft 服务协议</a></li><li>• <a href="https://www.microsoft.com/licensing/terms" target="_blank" class="text-primary hover:underline">Microsoft 365 使用条款</a></li></ul></div><div class="rounded-2xl border border-amber-200 bg-amber-50 p-4"><p class="font-medium text-amber-700">使用本工具即表示您已阅读、理解并同意遵守以上所有条款。</p></div></div></div>',1)])])):l("",!0)])])]))}});export{T as default};