perf: embedding price and img

This commit is contained in:
archer
2023-05-09 12:44:28 +08:00
parent b200731d17
commit fac53923dd
5 changed files with 8 additions and 5 deletions

View File

@@ -11,4 +11,5 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部
服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器: [FastGpt](https://fastgpt.run/)
**其他问题**
请 WX 联系: fastgpt123
![FastGpt](/imgs/wx300.jpg)
![](/imgs/wxqun300.jpg)
![](/imgs/wx300.jpg)

View File

@@ -4,8 +4,9 @@
### 交流群/问题反馈
扫码满了,加个小号,定时拉
如果群满了,加个小号,定时拉
wx 号: fastgpt123
![](/imgs/wxqun300.jpg)
![](/imgs/wx300.jpg)
### 快速开始
@@ -24,7 +25,7 @@ wx 号: fastgpt123
| claude - 对话 | 免费 |
| chatgpt - 对话 | 0.03 |
| 知识库 - 对话 | 0.03 |
| 知识库 - 索引 | 0.004 |
| 知识库 - 索引 | 免费 |
| 文件拆分 | 0.03 |
### 定制 prompt

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

BIN
public/imgs/wxqun300.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -128,8 +128,9 @@ export const pushGenerateVectorBill = async ({
try {
const unitPrice = 0.4;
// 计算价格. 至少为1
let price = unitPrice * tokenLen;
price = price > 1 ? price : 1;
const price = 0;
// let price = unitPrice * tokenLen;
// price = price > 1 ? price : 1;
// 插入 Bill 记录
const res = await Bill.create({