mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-27 12:49:34 +00:00
refactor: Refactor for core SDK (#1092)
This commit is contained in:
@@ -7,7 +7,7 @@ from dbgpt.core.operator import (
|
||||
PromptBuilderOperator,
|
||||
RequestBuilderOperator,
|
||||
)
|
||||
from dbgpt.model import OpenAILLMClient
|
||||
from dbgpt.model.proxy import OpenAILLMClient
|
||||
|
||||
with DAG("simple_sdk_llm_example_dag") as dag:
|
||||
prompt_task = PromptBuilderOperator(
|
||||
@@ -20,8 +20,6 @@ with DAG("simple_sdk_llm_example_dag") as dag:
|
||||
|
||||
if __name__ == "__main__":
|
||||
output = asyncio.run(
|
||||
out_parse_task.call(
|
||||
call_data={"data": {"dialect": "mysql", "table_name": "user"}}
|
||||
)
|
||||
out_parse_task.call(call_data={"dialect": "mysql", "table_name": "user"})
|
||||
)
|
||||
print(f"output: \n\n{output}")
|
||||
|
||||
Reference in New Issue
Block a user