mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-10-24 12:04:22 +08:00
## Features - 版本升级至 0.68.0 ## Fixes - 修复 EmptyState 组件标题排版问题 - 修复"开始生成"按钮文字换行问题 - 修复加载历史对话失败问题 - 修复 parse_message_content 保留 ContentPart 结构 - 修复 convert_agent_message 添加 reasoning_content 处理 - 修复 WorkspaceType::from_str 命名冲突,重命名为 parse ## Code Quality - 修复所有 clippy 警告 - 修复 manual_flatten 警告 - 修复 ptr_arg 警告(使用 &Path 替代 &PathBuf) - 修复 manual_clamp 警告 - 修复 match_single_binding 警告 - 所有测试通过 (174 passed)
56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
---
|
|
title: API 概览
|
|
description: 面向进阶用户的本地接口能力说明
|
|
navigation:
|
|
icon: i-heroicons-code-bracket
|
|
---
|
|
|
|
# API 概览
|
|
|
|
::alert{type="info"}
|
|
本章节面向进阶用户与开发者。普通创作者可直接在应用内使用,无需 API 接入。
|
|
::
|
|
|
|
当你需要把 ProxyCast 接入脚本、自动化流程或第三方工具时,可使用本地 API。
|
|
|
|
## 常见端点类型
|
|
|
|
### 通用对话端点
|
|
|
|
用于文本生成、对话续写等任务。
|
|
|
|
### 模型与管理端点
|
|
|
|
用于读取模型列表、状态信息和部分管理能力。
|
|
|
|
### 扩展端点
|
|
|
|
用于特定平台或集成场景。
|
|
|
|
## 认证方式
|
|
|
|
- `Authorization: Bearer <api-key>`
|
|
- 或使用兼容格式的密钥头
|
|
|
|
请确保 API Key 仅在可信环境使用。
|
|
|
|
## 默认地址
|
|
|
|
默认本地地址:`http://127.0.0.1:8999`
|
|
|
|
通常建议保持本地监听,不对公网暴露。
|
|
|
|
## 错误排查建议
|
|
|
|
- `401`:密钥错误或请求头格式错误
|
|
- `404`:端点路径错误
|
|
- `429`:请求频率过高
|
|
- `5xx`:服务端异常或上游波动
|
|
|
|
## 下一步
|
|
|
|
- [OpenAI API](/api-reference/openai-api)
|
|
- [Claude API](/api-reference/claude-api)
|
|
- [管理 API](/api-reference/management-api)
|
|
- [Amp CLI API](/api-reference/amp-cli-api)
|