Skip to content

Commit a3966e0

Browse files
exiaohuliyuxuan-bd
authored andcommitted
fix: misc
1 parent b3e5745 commit a3966e0

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

volcenginesdkarkruntime/resources/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from .content_generation import ContentGeneration, AsyncContentGeneration
2121
from .images import Images, AsyncImages
2222
from .batch_chat import BatchChat, AsyncBatchChat
23-
from .responses import Responses, AsyncResponses, InputItems, AsyncInputItems
23+
from .batch import Batch, AsyncBatch
2424

2525
__all__ = [
2626
"Chat",
@@ -42,6 +42,8 @@
4242
"AsyncImages",
4343
"BatchChat",
4444
"AsyncBatchChat",
45+
"Batch",
46+
"AsyncBatch",
4547
"Classification",
4648
"AsyncClassification",
4749
"AsyncBatchChat",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .batch import AsyncBatch, Batch
2+
3+
__all__ = ["Batch", "AsyncBatch"]

volcenginesdkarkruntime/resources/batch/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from ..._compat import cached_property
44
from ..._resource import AsyncAPIResource, SyncAPIResource
5-
from .chat.chat import AsyncChat, Chat
5+
from .chat import AsyncChat, Chat
66
from .embeddings import AsyncEmbeddings, Embeddings
77
from .multimodal_embeddings import AsyncMultimodalEmbeddings, MultimodalEmbeddings
88

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .chat import AsyncChat, Chat
2+
3+
__all__ = ["Chat", "AsyncChat"]

volcenginesdkexamples/volcenginesdkarkruntime/async_batch_chat_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def worker(
2626
while True:
2727
request = await requests.get()
2828
try:
29-
completion = await client.batch_chat.completions.create(**request)
29+
completion = await client.batch.chat.completions.create(**request)
3030
print(completion)
3131
except Exception as e:
3232
print(e, file=sys.stderr)

volcenginesdkexamples/volcenginesdkarkruntime/batch_chat_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def worker(
3535

3636
try:
3737
# do request
38-
completion = client.batch_chat.completions.create(**request)
38+
completion = client.batch.chat.completions.create(**request)
3939
print(completion)
4040
except Exception as e:
4141
print(e, file=sys.stderr)

0 commit comments

Comments
 (0)