Fangyin Cheng
|
e9155f0c31
|
feat: Support dynamic parameters
|
2024-08-30 15:04:25 +08:00 |
|
Fangyin Cheng
|
93527e0b04
|
feat: Support variables query API
|
2024-08-30 15:04:25 +08:00 |
|
Fangyin Cheng
|
0e71991f7e
|
chore: Merge latest code
|
2024-08-30 15:02:53 +08:00 |
|
Fangyin Cheng
|
bf63a967b5
|
feat: Support endpoint placeholder
|
2024-08-30 15:01:41 +08:00 |
|
Fangyin Cheng
|
c67b50052d
|
chore: Merge latest code
|
2024-08-30 15:00:14 +08:00 |
|
Fangyin Cheng
|
9502251c08
|
feat(core): AWEL flow 2.0 backend code (#1879)
Co-authored-by: yhjun1026 <460342015@qq.com>
|
2024-08-23 14:57:54 +08:00 |
|
明天
|
b124ecc10b
|
feat: (0.6)New UI (#1855)
Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com>
Co-authored-by: csunny <cfqsunny@163.com>
|
2024-08-21 17:37:45 +08:00 |
|
Aries-ckt
|
167d972093
|
feat(ChatKnowledge): Support Financial Report Analysis (#1702)
Co-authored-by: hzh97 <2976151305@qq.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: licunxing <864255598@qq.com>
|
2024-07-26 13:40:54 +08:00 |
|
Fangyin Cheng
|
f889fa3775
|
feat(core): Multiple ways to run dbgpts (#1734)
|
2024-07-18 17:50:40 +08:00 |
|
Fangyin Cheng
|
bf978d2bf9
|
feat(core): Support opentelemetry exporter (#1690)
|
2024-07-05 15:20:21 +08:00 |
|
Fangyin Cheng
|
ace169ac46
|
fix(core): Fix AWEL branch bug (#1640)
|
2024-06-18 11:11:43 +08:00 |
|
Fangyin Cheng
|
a88af6f87d
|
feat: Support intent detection (#1588)
|
2024-05-30 18:51:57 +08:00 |
|
Fangyin Cheng
|
593e974405
|
feat(model): Support deploy rerank model (#1522)
|
2024-05-16 14:50:16 +08:00 |
|
Aries-ckt
|
c8fb508fe4
|
style: code format (#1513)
|
2024-05-13 09:39:15 +08:00 |
|
Fangyin Cheng
|
863b5404dd
|
refactor(agent): Agent modular refactoring (#1487)
|
2024-05-07 09:45:26 +08:00 |
|
Fangyin Cheng
|
57be1ece18
|
feat(core): Upgrade pydantic to 2.x (#1428)
|
2024-04-20 09:41:16 +08:00 |
|
yyhhyy
|
00af9fed35
|
fix(awel): Fix awel check for empty DataFrame data bug (#1430)
|
2024-04-18 15:15:07 +08:00 |
|
Fangyin Cheng
|
7d6dfd9ea8
|
feat(model): Support moonshot proxy LLM (#1404)
|
2024-04-10 23:41:50 +08:00 |
|
Fangyin Cheng
|
df80bc2079
|
feat(agent): Release agent SDK (#1396)
|
2024-04-10 22:44:53 +08:00 |
|
yyhhyy
|
0f2b46da62
|
fix: Code standards (#1393)
|
2024-04-09 21:01:32 +08:00 |
|
Fangyin Cheng
|
634e62cb6e
|
feat: Support HTTP sender (#1383)
|
2024-04-08 16:13:49 +08:00 |
|
Fangyin Cheng
|
3a7a2cbbb8
|
feat: Run AWEL flow in CLI (#1341)
|
2024-03-27 12:50:05 +08:00 |
|
Fangyin Cheng
|
fcc325d411
|
feat(core): Support i18n (#1327)
|
2024-03-25 20:15:39 +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 |
|
Fangyin Cheng
|
b4b810d68f
|
feat(core): Add common schemas
|
2024-03-21 11:23:24 +08:00 |
|
Fangyin Cheng
|
86a7b6c6f3
|
fix(awel): Fix awel check empty data bug (#1311)
|
2024-03-19 18:56:57 +08:00 |
|
Fangyin Cheng
|
4970c9f813
|
refactor: Refactor datasource module (#1309)
|
2024-03-18 18:06:40 +08:00 |
|
Fangyin Cheng
|
130ffb08c9
|
feat(model): Support yi proxy LLM (#1303)
|
2024-03-15 22:15:37 +08:00 |
|
Fangyin Cheng
|
8897d6e8fd
|
chore: Add pylint for storage (#1298)
|
2024-03-15 15:42:46 +08:00 |
|
Fangyin Cheng
|
adaa68eb00
|
feat(rag): Support rag retriever evaluation (#1291)
|
2024-03-14 13:06:57 +08:00 |
|
Fangyin Cheng
|
7446817340
|
chore: Add pylint for DB-GPT rag lib (#1267)
|
2024-03-07 23:27:43 +08:00 |
|
Fangyin Cheng
|
872b5745d3
|
fix: Fixed multi-turn dialogue bug (#1259)
|
2024-03-06 22:17:47 +08:00 |
|
Fangyin Cheng
|
191f546ca4
|
feat: AWEL flow supports dynamic parameters (#1251)
|
2024-03-04 21:52:32 +08:00 |
|
Fangyin Cheng
|
3c93fe589a
|
docs: New AWEL tutorial (#1245)
|
2024-03-04 17:06:42 +08:00 |
|
Fangyin Cheng
|
0e61c55e12
|
fix(core): Fix HTTP Trigger parse parameter bug (#1225)
|
2024-03-01 10:56:03 +08:00 |
|
Fangyin Cheng
|
1d90711952
|
feat(core): Dynamically loading dbgpts (#1211)
|
2024-02-29 15:57:49 +08:00 |
|
Hzh_97
|
673ddaab5b
|
feat(web): copy awel flow (#1200)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
|
2024-02-28 21:03:23 +08:00 |
|
Fangyin Cheng
|
e0986198a6
|
feat(core): Support RAG chat flow (#1185)
|
2024-02-23 11:44:44 +08:00 |
|
Fangyin Cheng
|
ab5e1c7ea1
|
feat(core): Support more chat flows (#1180)
|
2024-02-22 12:19:04 +08:00 |
|
Aries-ckt
|
32e1554282
|
feat:add rag awel operator view metadata. (#1174)
|
2024-02-21 10:24:12 +08:00 |
|
明天
|
d5afa6e206
|
Native data AI application framework based on AWEL+AGENT (#1152)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: lcx01800250 <lcx01800250@alibaba-inc.com>
Co-authored-by: licunxing <864255598@qq.com>
Co-authored-by: Aralhi <xiaoping0501@gmail.com>
Co-authored-by: xuyuan23 <643854343@qq.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: hzh97 <2976151305@qq.com>
|
2024-02-07 17:43:27 +08:00 |
|
Aries-ckt
|
be6718849f
|
fix:default setting prompt with history messages (#1117)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
|
2024-01-24 23:03:08 +08:00 |
|
Fangyin Cheng
|
13527a8bd4
|
fix(core): Fix bug of sharing data across DAGs (#1102)
|
2024-01-22 21:56:03 +08:00 |
|
Fangyin Cheng
|
73c86ff083
|
chore: Fix package name conflict error (#1099)
|
2024-01-22 15:33:43 +08:00 |
|
Fangyin Cheng
|
2d905191f8
|
refactor: Refactor for core SDK (#1092)
|
2024-01-21 09:57:57 +08:00 |
|
Fangyin Cheng
|
40c853575a
|
chore: Add pylint for DB-GPT core lib (#1076)
|
2024-01-16 17:36:26 +08:00 |
|
Fangyin Cheng
|
22bfd01c4b
|
refactor: Refactor proxy LLM (#1064)
|
2024-01-14 21:01:37 +08:00 |
|
Fangyin Cheng
|
fa8b5b190c
|
feat(core): APP use new SDK component (#1050)
|
2024-01-10 10:39:04 +08:00 |
|
Fangyin Cheng
|
e8861bd8fa
|
feat(awel): New MessageConverter and more AWEL operators (#1039)
|
2024-01-08 09:40:05 +08:00 |
|