Skip to content

Commit 233c4a2

Browse files
authored
chore(chat-api): fix params struct define. (#25)
chore(chat-api): fix params struct define.
1 parent 0b700d2 commit 233c4a2

File tree

3 files changed

+153
-11
lines changed

3 files changed

+153
-11
lines changed

libs/api/hiagent_api/chat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def sync_run_app_workflow(
490490
) -> SyncRunAppWorkflowResponse:
491491
return SyncRunAppWorkflowResponse.model_validate_json(
492492
self._post(
493-
app_key, "run_app_workflow", req.model_dump(by_alias=True)
493+
app_key, "sync_run_app_workflow", req.model_dump(by_alias=True)
494494
),
495495
by_alias=True,
496496
)
@@ -500,7 +500,7 @@ async def async_run_app_workflow(
500500
) -> SyncRunAppWorkflowResponse:
501501
return SyncRunAppWorkflowResponse.model_validate_json(
502502
await self._apost(
503-
app_key, "run_app_workflow", req.model_dump(by_alias=True)
503+
app_key, "sync_run_app_workflow", req.model_dump(by_alias=True)
504504
),
505505
by_alias=True,
506506
)
@@ -510,7 +510,7 @@ def query_run_app_process(
510510
) -> QueryRunAppProcessResponse:
511511
return QueryRunAppProcessResponse.model_validate_json(
512512
self._post(
513-
app_key, "run_app_workflow", req.model_dump(by_alias=True)
513+
app_key, "query_run_app_process", req.model_dump(by_alias=True)
514514
),
515515
by_alias=True,
516516
)
@@ -520,7 +520,7 @@ async def aquery_run_app_process(
520520
) -> QueryRunAppProcessResponse:
521521
return QueryRunAppProcessResponse.model_validate_json(
522522
await self._apost(
523-
app_key, "run_app_workflow", req.model_dump(by_alias=True)
523+
app_key, "query_run_app_process", req.model_dump(by_alias=True)
524524
),
525525
by_alias=True,
526526
)

0 commit comments

Comments
 (0)