Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/.vuepress/public/favicon.ico
Binary file not shown.
Binary file removed src/.vuepress/public/logo.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/.vuepress/public/logo.svg

This file was deleted.

Binary file added src/.vuepress/public/logo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import navbar from "./navbar.js";
import sidebar from "./sidebar.js";

export default hopeTheme({
hostname: "https://vuepress-theme-hope-docs-demo.netlify.app",
hostname: "https://yh-api.yyyyt.top",

author: {
name: "yh-third-dev",
url: "https://github.com/yh-Tpdev/",
},

logo: "https://theme-hope-assets.vuejs.press/logo.svg",
logo: "/logo.webp",

repo: "yh-Tpdev/yhchatAPI",

Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
home: true
icon: house
title: 主页
heroImage: https://theme-hope-assets.vuejs.press/logo.svg
heroImage: /logo.webp
bgImage: /assets/Hiro.avif
bgImageStyle:
background-attachment: fixed
Expand Down
9 changes: 7 additions & 2 deletions src/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ title: API
- 视频路由:
- `https://chat-video1.jwznb.com/`

云湖数据床地址需要请求头加上 `Referer: http://myapp.jwznb.com` 才可正常获取内容,否则会403.
云湖数据床地址需要请求头加上 `Referer: http://myapp.jwznb.com` 才可正常获取内容,否则会403.

chat_type 聊天对象的类型: 1-用户, 2-群组, 3-机器人
content_type 信息类型: 1-文本,2-图片,3-markdown,4-文件,5-表单,6-文章,7-表情,8-html,11-语音,13-语音通话, 14-A2UI
:::

::: tip 如何让 LLM 写出可用性更高的代码
Expand All @@ -44,6 +47,8 @@ https://yh-api.yyyyt.top/llms-full.txt
**请务必注意 protobuf 协议本身的特性.**
**云湖账号的 Token 请务必小心对待不要泄露,不要将 token 硬编码到代码中.**
```
::::

:::


<Catalog />
8 changes: 4 additions & 4 deletions src/api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Proto 文件中的 Status 未特别备注均为下面内容:

```proto
message Status {
uint64 number = 1; // 不知道干啥的,可能是请求ID
uint64 code = 2; // 状态码,1为正常
uint64 request_id = 1; // 请求 ID
uint64 code = 2; // 状态码,1 为正常
string msg = 3; // 返回消息
}
```
Expand All @@ -23,8 +23,8 @@ message Status {

```JSONC
{
"code":1, // 返回状态码
"msg":"success" //返回状态信息
"code":1, // 返回状态码,1 为正常
"msg":"success" //返回状态消息
}
```

Expand Down
6 changes: 3 additions & 3 deletions src/api/v1/beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ POST /v1/beta/info

### 响应体

```JSONC
```JSON
{
"code": 1, // 请求状态码,1 为正常
"code": 1,
"data": {
"beta": "allow", // 是否为内测用户,allow - 是,noapply - 否
"info": "\n即将内测的功能:\n1、更加完整的内测功能\n2、邀请码自定义功能\n3、地区排名活动\n4、网页版云湖\n"
}, // 内测信息
"msg": "success" // 返回消息
"msg": "success"
}
```
Loading