mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-30 05:49:25 +00:00
feat(client): Modify api address
This commit is contained in:
@@ -1,25 +1,20 @@
|
||||
"""Client: Simple App CRUD example.
|
||||
|
||||
This example demonstrates how to use the dbgpt client to get, list apps.
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
# 1. List all apps
|
||||
res = await list_app(client)
|
||||
# 2. Get an app
|
||||
res = await get_app(client, app_id="bf1c7561-13fc-4fe0-bf5d-c22e724766a8")
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from dbgpt.client import Client
|
||||
from dbgpt.client.app import list_app
|
||||
from dbgpt.client.client import Client
|
||||
|
||||
"""
|
||||
Client: Simple App CRUD example
|
||||
|
||||
This example demonstrates how to use the dbgpt client to get, list apps.
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
DBGPT_API_KEY = "dbgpt"
|
||||
client = Client(api_key=DBGPT_API_KEY)
|
||||
# 1. List all apps
|
||||
res = await list_app(client)
|
||||
# 2. Get an app
|
||||
res = await get_app(
|
||||
client, app_id="bf1c7561-13fc-4fe0-bf5d-c22e724766a8"
|
||||
)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
async def main():
|
||||
|
Reference in New Issue
Block a user