Skip to content

Commit 9bd6419

Browse files
committed
feat(*): support ark batch chat
1 parent 52831cb commit 9bd6419

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

volcenginesdkexamples/volcenginesdkarkruntime/async_batch_chat_completions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
# or specify ak&sk by Ark(ak="${YOUR_AK}", sk="${YOUR_SK}").
1717
# To get your ak&sk, please refer to this document(https://www.volcengine.com/docs/6291/65568)
1818
# For more information,please check this document(https://www.volcengine.com/docs/82379/1263279)
19-
client = AsyncArk()
20-
2119

2220
async def worker(worker_id, task_num):
21+
client = AsyncArk()
2322
print(f"Worker {worker_id} is starting.")
2423
for i in range(task_num):
2524
print(f"Worker {worker_id} task {i} is running.")

0 commit comments

Comments
 (0)