Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Feb 13, 2024
1 parent dacbd16 commit 632069a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_large.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from oaib import Auto, Batch


async def test_long():
async def test_large_auto():
batch = Auto()

# Large batch - Auto (fast)
Expand All @@ -21,8 +21,14 @@ async def test_long():
chat = chats.iloc[0].get("result")
assert chat['choices'], "Should get valid chat completions"

# Large batch - Batch (slow)

async def test_large_batch():
batch = Batch()

# Large batch - Batch (slow)
n = 5_000
m = 10

for i in range(n):
await batch.add(
"chat.completions.create",
Expand Down

0 comments on commit 632069a

Please sign in to comment.