提交文档

This commit is contained in:
zpc 2024-07-16 03:53:26 +08:00
parent 797a56dbdd
commit 8c9ad43230
7 changed files with 64 additions and 3 deletions

View File

@ -40,4 +40,20 @@ sudo systemctl restart miaoyu
##
```sh
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
```
```
### 角色单独设置
1 100
10000
## 服务器费用
存储容量 100G 8.14
流量 50G 17.50
api 请求 1
## 后台框架
https://github.com/xianhc/apevolo-api

View File

@ -1,6 +1,6 @@
### 首页接口
#### 用户和角色接口信息
#### 角色接口信息
1. 角色名称
2. 是否点赞
3. 多少人看过
@ -8,7 +8,7 @@
5. 角色背景图
6. 角色Id
7. 角色头像
#### 聊天记录数据
1. 角色区分ai聊天还是自己发送的聊天
2. 消息是什么发送的时间
@ -17,10 +17,23 @@
5. 消息类型(文本,语音,图像)
6. 消息内容
#### 发送消息接口
#### 删除单个消息接口
#### 重置对话接口
### 用户信息接口 充值的时候,请求接口失败的时候,刷新用户信息
1.余下多少聊天次数 1.聊天次数是每个角色通用的,首页需要左右滑动
### 多少人聊过
1. 在角色表中添加字段每5分钟刷新一次。角色表缓存。
## 模型表
1. 模型名称
2. 模型model
3. 模型运行最大的max_tokens
4. 模型key x-api-key
5. 模型版本 anthropic-version

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -16,7 +16,18 @@ utf8mb4_general_ci
docker run --name mysql5.7 -e MYSQL_ROOT_PASSWORD=9dG2b5E5cWkzkAya -p 3306:3306 -d mysql:5.7
docker exec -i mysql5.7 sh -c 'exec mysql -uroot -p"$9dG2b5E5cWkzkAya"' < xinglanmh_shequt_2024-06-30_04-51-20_mysql_data_BR20C.sql
mysql -uroot -p xinglanmh_shequt < /disk/xinglanmh_shequt.sql
xinglanmh.shequtuangou.vip
## 小程序
枫岚云赏
Appidwx82c787f79c22f012
AppSecretc6da2a4588646d4673404b5389e6f8d4
枫岚云赏OL
微信号wx22273e57f5fa8e36
AppSecret2c0939eea2cf5685793627ba40f22efc
微信商户平台661519
## [开发文档](https://www.kancloud.cn/manual/thinkphp6_0/1037483)

21
文档/.net/Serilog.md Normal file
View File

@ -0,0 +1,21 @@
# Serilog 日志组件
## .net code web api集成Serilog日志组件
```sh
# 安装包
dotnet add package Serilog
dotnet add package Serilog.AspNetCore
dotnet add package Serilog.Sinks.Console
dotnet add package Serilog.Sinks.File
#
var builder = WebApplication.CreateBuilder(args);
Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.WriteTo.File("logs/myapp.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();
##
builder.Host.UseSerilog();
## 添加中间件
app.UseSerilogRequestLogging();
```