mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-13 05:01:25 +00:00
fix:rag serve error
This commit is contained in:
@@ -23,8 +23,8 @@ Client: Simple App CRUD example
|
||||
|
||||
|
||||
async def main():
|
||||
# initialize client
|
||||
|
||||
# initialize client
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
res = await list_app(client)
|
||||
|
@@ -55,6 +55,7 @@ Client: Simple Chat example
|
||||
|
||||
|
||||
async def main():
|
||||
|
||||
# initialize client
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
|
@@ -36,8 +36,8 @@ Client: Simple Flow CRUD example
|
||||
|
||||
|
||||
async def main():
|
||||
# initialize client
|
||||
|
||||
# initialize client
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
res = await list_flow(client)
|
||||
|
@@ -69,12 +69,13 @@ from dbgpt.client.knowledge import list_space
|
||||
|
||||
async def main():
|
||||
|
||||
# initialize client
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
|
||||
# list all spaces
|
||||
res = await list_space(client)
|
||||
print(res)
|
||||
print(res.json())
|
||||
|
||||
# get space
|
||||
# res = await get_space(client, space_id='5')
|
||||
|
Reference in New Issue
Block a user