diff --git a/frontend/src/components/layout/AuthLayout.vue b/frontend/src/components/layout/AuthLayout.vue index 4da00aa4..60fd4075 100644 --- a/frontend/src/components/layout/AuthLayout.vue +++ b/frontend/src/components/layout/AuthLayout.vue @@ -2,6 +2,10 @@
+
+ +
+
-

快速接入 PURO AI

-

三步走:拿 key → 配 base_url → 发请求

+

{{ $t('docs.hero.title') }}

+

{{ $t('docs.hero.subtitle') }}

-

1. 获取 API key

-

当前 PURO AI 不开放自助注册付费。联系管理员获取:

+

{{ $t('docs.sections.getKey.heading') }}

+

{{ $t('docs.sections.getKey.desc') }}

-

未来通过 iShare 入口开放订阅购买。

+

{{ $t('docs.sections.getKey.note') }}

-

2. Codex CLI 接入

-

修改 ~/.codex/config.toml

+

{{ $t('docs.sections.codex.heading') }}

+

{{ $t('docs.sections.codex.configIntro') }}

@@ -53,7 +54,7 @@ - 复制 + {{ $t('docs.sections.codex.copy') }}
model_provider = "OpenAI"
@@ -66,7 +67,7 @@ base_url = "https://ai.puro.im"
 wire_api = "responses"
 requires_openai_auth = true
-

然后 ~/.codex/auth.json

+

{{ $t('docs.sections.codex.authIntro') }}

@@ -80,14 +81,14 @@ requires_openai_auth = true - 复制 + {{ $t('docs.sections.codex.copy') }}
{
   "OPENAI_API_KEY": "sk-xxxxxxxxxxxxxxxx"
 }
-

验证:

+

{{ $t('docs.sections.codex.verifyIntro') }}

@@ -101,7 +102,7 @@ requires_openai_auth = true - 复制 + {{ $t('docs.sections.codex.copy') }}
$ codex exec --sandbox read-only "say hi"
@@ -109,8 +110,8 @@ requires_openai_auth = true
-

3. Claude Code 接入

-

修改 ~/.claude/settings.json

+

{{ $t('docs.sections.claudeCode.heading') }}

+

{{ $t('docs.sections.claudeCode.configIntro') }}

@@ -124,7 +125,7 @@ requires_openai_auth = true - 复制 + {{ $t('docs.sections.claudeCode.copy') }}
{
@@ -132,12 +133,12 @@ requires_openai_auth = true
"api_key": "sk-xxxxxxxxxxxxxxxx" }
-

Claude Code 通过 /v1/messages endpoint 调用 Anthropic 兼容 API。

+

{{ $t('docs.sections.claudeCode.note') }}

-

4. curl 直连测试

-

OpenAI Responses API:

+

{{ $t('docs.sections.curl.heading') }}

+

{{ $t('docs.sections.curl.openaiIntro') }}

@@ -151,7 +152,7 @@ requires_openai_auth = true - 复制 + {{ $t('docs.sections.curl.copy') }}
$ curl https://ai.puro.im/responses \
@@ -159,7 +160,7 @@ requires_openai_auth = true
-H "Content-Type: application/json" \ -d '{"model":"gpt-5.4","input":"hello"}'
-

Anthropic Messages API:

+

{{ $t('docs.sections.curl.anthropicIntro') }}

@@ -173,7 +174,7 @@ requires_openai_auth = true - 复制 + {{ $t('docs.sections.curl.copy') }}
$ curl https://ai.puro.im/v1/messages \
@@ -185,15 +186,15 @@ requires_openai_auth = true
-

5. 支持的模型

+

{{ $t('docs.sections.models.heading') }}

- - - - + + + + @@ -205,7 +206,7 @@ requires_openai_auth = true - + @@ -236,12 +237,15 @@ requires_openai_auth = true
模型平台 / 来源上下文状态{{ $t('docs.sections.models.colModel') }}{{ $t('docs.sections.models.colPlatform') }}{{ $t('docs.sections.models.colContext') }}{{ $t('docs.sections.models.colStatus') }}
gpt-5.4-codexOpenAI Codex 专用{{ $t('docs.sections.models.codexDedicated') }} 272K OK
-

后端 pricing 表实时跟进 model-price-repo,完整清单登录后在 控制台 查看。

+ + + +
-

6. 问题反馈

-

遇到问题或希望补接某个平台:

+

{{ $t('docs.sections.feedback.heading') }}

+

{{ $t('docs.sections.feedback.desc') }}

@@ -251,8 +255,11 @@ requires_openai_auth = true