Florian
|
4fe10c0906
|
docs: update readme content (#1392)
|
2024-04-09 14:25:41 +08:00 |
|
majianguang
|
048ec71bdf
|
fix: Resolve the issue of incorrect parameter echo for resources under app editing (#1391)
|
2024-04-09 14:25:04 +08:00 |
|
Evan Chen
|
01a8a0fff6
|
Solve the problem of resource duplication and solve the problem of slow recall of table structure (#1381)
Co-authored-by: ChenXinye <chenxinye@weihaizixun.com>
|
2024-04-08 19:57:51 +08:00 |
|
yyhhyy
|
5a0c20a864
|
feat: Upgrade torch version to 2.2.1 (#1374)
Co-authored-by: yyhhyy <yyhhyyyyyy@163.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
|
2024-04-08 18:35:19 +08:00 |
|
Aries-ckt
|
bb77e13dee
|
chore:wechat update (#1388)
|
2024-04-08 17:08:02 +08:00 |
|
Fangyin Cheng
|
634e62cb6e
|
feat: Support HTTP sender (#1383)
|
2024-04-08 16:13:49 +08:00 |
|
Fangyin Cheng
|
df36b947d1
|
feat(model): Support Qwen1.5-32B (#1385)
|
2024-04-08 09:40:24 +08:00 |
|
Aries-ckt
|
d4da50330f
|
fix: dashboard editor run error (#1380)
|
2024-04-07 15:04:28 +08:00 |
|
yyhhyy
|
f2a6284c0e
|
fix: Fix the mypy check error (#1373)
Co-authored-by: yyhhyy <95077259+Hui824@users.noreply.github.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
|
2024-04-07 14:22:23 +08:00 |
|
yyhhyy
|
62f90c95ce
|
fix: Fix the default dependency installation error (#1363)
Co-authored-by: yyhhyy <yyhhyyyyyy@163.com>
|
2024-04-02 16:03:54 +08:00 |
|
xiuzhu9527
|
6210b73ba2
|
fix: when delete knowledge, error: space list error embedding is required for MilvusStore (#1359)
Co-authored-by: xiuzhu <edy@dodge-pro.local>
|
2024-04-02 11:09:27 +08:00 |
|
付
|
4238a670bf
|
fix: Fix the issue of invalid port settings (#1351)
|
2024-03-29 17:25:42 +08:00 |
|
Fangyin Cheng
|
a272d1b8f3
|
feat(model): Support Starling-LM-7B-beta (#1350)
|
2024-03-29 17:25:30 +08:00 |
|
Aries-ckt
|
e0ab852a60
|
chore:version and wechat update (#1346)
|
2024-03-28 15:05:36 +08:00 |
|
Aries-ckt
|
dffd235bfb
|
feat: Client support chatdata (#1343)
|
2024-03-28 09:04:28 +08:00 |
|
Fangyin Cheng
|
f144fc3d36
|
docs: Add AWEL chat data cookbook (#1345)
|
2024-03-27 22:47:28 +08:00 |
|
Fangyin Cheng
|
3a7a2cbbb8
|
feat: Run AWEL flow in CLI (#1341)
|
2024-03-27 12:50:05 +08:00 |
|
magic.chen
|
340a9fbc35
|
fix: pg py dependency problem (#1332)
|
2024-03-26 11:46:36 +08:00 |
|
Fangyin Cheng
|
fcc325d411
|
feat(core): Support i18n (#1327)
|
2024-03-25 20:15:39 +08:00 |
|
Fangyin Cheng
|
fa06be64c1
|
fix: Fix build docker image error (#1325)
|
2024-03-23 09:44:20 +08:00 |
|
Fangyin Cheng
|
8a17099dd2
|
feat(rag): Support RAG SDK (#1322)
|
2024-03-22 15:36:57 +08:00 |
|
明天
|
e65732d6e4
|
feat: add Client and API v2 (#1316)
# Description
1. Provide /api/v2 for DB-GPT
2. Add DBGPT Python Client for Chat, Flow, App, Knowledge, Including:
- Chat
- Create
- Update
- Delete
- Get
- List
3. Add examples in `examples/client/`
4. Add API Reference document
# How Has This Been Tested?
## Test Chat Normal
### Curl
1. set `API_KEYS=dbgpt` in `.env`
2. `python dbgpt/app/dbgpt_server.py`
3. test with curl
```
DBGPT_API_KEY=dbgpt
curl -X POST "http://localhost:5000/api/v2/chat/completions" \
-H "Authorization: Bearer $DBGPT_API_KEY" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"messages\":\"Hello\",\"model\":\"chatgpt_proxyllm\"}"
```
```
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": "Hello"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": "!"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " How"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " can"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " I"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " assist"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " you"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": " today"}}]}
data: {"id": "chatcmpl-ab5fd180-e699-11ee-8388-acde48001122", "model": "chatgpt_proxyllm", "choices": [{"index": 0, "delta": {"role": "assistant", "content": "?"}}]}
data: [DONE]
```
### Python
```python
from dbgpt.client import Client
DBGPT_API_KEY = "dbgpt"
client = Client(api_key=DBGPT_API_KEY)
# stream
async for data in client.chat_stream(
model="chatgpt_proxyllm",
messages="hello",
):
print(data)
# no stream
await client.chat(model="chatgpt_proxyllm", messages="hello")
```
## Test Chat App
### Curl
test with curl
```
DBGPT_API_KEY=dbgpt
APP_CODE={YOUR_APP_CODE}
curl -X POST "http://localhost:5000/api/v2/chat/completions" \
-H "Authorization: Bearer $DBGPT_API_KEY" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"messages\":\"Hello\",\"model\":\"chatgpt_proxyllm\", \"chat_mode\": \"chat_app\", \"chat_param\": \"$APP_CODE\"}"
```
### Python
```python
from dbgpt.client import Client
DBGPT_API_KEY = "dbgpt"
client = Client(api_key=DBGPT_API_KEY)
APP_CODE="{YOUR_APP_CODE}"
async for data in client.chat_stream(
model="chatgpt_proxyllm",
messages="hello",
chat_mode="chat_app",
chat_param=APP_CODE
):
print(data)
```
# Snapshots:
Include snapshots for easier review.
# Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have already rebased the commits and make the commit message
conform to the project standard.
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] Any dependent changes have been merged and published in downstream
modules
|
2024-03-22 09:57:58 +08:00 |
|
Hzh_97
|
04322de4f3
|
fix(web): Fix sql format error (#1319)
|
2024-03-21 17:41:25 +08:00 |
|
aries_ckt
|
f117f4d297
|
fix:api_v1 msg error
|
2024-03-21 16:12:48 +08:00 |
|
aries_ckt
|
ab9d8a370e
|
fix:return conv_uid and update wechat
|
2024-03-21 15:59:46 +08:00 |
|
aries_ckt
|
0cf08f37b0
|
fix:update app schemas.
|
2024-03-21 15:30:57 +08:00 |
|
aries_ckt
|
a1369c02c4
|
fix:client path error and update chat_knowledge prompt
|
2024-03-21 14:13:59 +08:00 |
|
Fangyin Cheng
|
b4b810d68f
|
feat(core): Add common schemas
|
2024-03-21 11:23:24 +08:00 |
|
Fangyin Cheng
|
ab3e8e54a1
|
feat(client): Modify api address
|
2024-03-21 09:58:32 +08:00 |
|
aries_ckt
|
01ea5f8064
|
doc:update api docs
|
2024-03-20 21:37:52 +08:00 |
|
aries_ckt
|
75f086a41d
|
doc:update api docs
|
2024-03-20 18:40:59 +08:00 |
|
aries_ckt
|
f43abf3155
|
fix:client mypy error
|
2024-03-20 16:22:38 +08:00 |
|
Fangyin Cheng
|
86a7b6c6f3
|
fix(awel): Fix awel check empty data bug (#1311)
|
2024-03-19 18:56:57 +08:00 |
|
aries_ckt
|
7bc5c59a89
|
fix:client mypy error
|
2024-03-18 22:12:25 +08:00 |
|
aries_ckt
|
4413ff682f
|
fix:rag serve error
|
2024-03-18 19:37:06 +08:00 |
|
Fangyin Cheng
|
0ed30aa44a
|
feat: Add dbgpt client and add api v2
|
2024-03-18 18:29:27 +08:00 |
|
Fangyin Cheng
|
4970c9f813
|
refactor: Refactor datasource module (#1309)
|
2024-03-18 18:06:40 +08:00 |
|
Kevin.Shin
|
84bedee306
|
fix(datasource): Fix the bug of doris missing comments (#1308)
Co-authored-by: shenk-b <shenk-b@glodon.com>
|
2024-03-18 16:58:19 +08:00 |
|
Fangyin Cheng
|
130ffb08c9
|
feat(model): Support yi proxy LLM (#1303)
|
2024-03-15 22:15:37 +08:00 |
|
付
|
6974329116
|
fix: Fix ClickHouse default login bug (#1292)
|
2024-03-15 16:47:50 +08:00 |
|
Fangyin Cheng
|
8897d6e8fd
|
chore: Add pylint for storage (#1298)
|
2024-03-15 15:42:46 +08:00 |
|
明天
|
a207640ff2
|
fix(agent): Fix agent loss message bug (#1283)
|
2024-03-14 14:38:10 +08:00 |
|
Fangyin Cheng
|
adaa68eb00
|
feat(rag): Support rag retriever evaluation (#1291)
|
2024-03-14 13:06:57 +08:00 |
|
Aries-ckt
|
cd2dcc253c
|
chore:upgrade wechat (#1286)
|
2024-03-13 16:41:27 +08:00 |
|
ASTLY
|
6df9f79f69
|
Fixed the problem of loading only one plugin when there are multiple … (#1282)
|
2024-03-13 10:11:12 +08:00 |
|
付
|
04b6402720
|
feat(model): Add support for multiple versions of the same model (#1246)
|
2024-03-08 18:40:10 +08:00 |
|
Fangyin Cheng
|
7446817340
|
chore: Add pylint for DB-GPT rag lib (#1267)
|
2024-03-07 23:27:43 +08:00 |
|
Aries-ckt
|
aaaf34db17
|
docs: upgrate v0.5.1 doc (#1265)
|
2024-03-07 13:37:59 +08:00 |
|
magic.chen
|
1ad4c3905e
|
docs: overview update & fix reference addr (#1263)
|
2024-03-07 11:59:03 +08:00 |
|
Aries-ckt
|
33d08c3024
|
chore:update wechat (#1261)
|
2024-03-07 10:22:12 +08:00 |
|