Skip to content

Commit c3bda2e

Browse files
Update tests/api-resources/embeddings.test.ts
Co-authored-by: Robert Craigie <[email protected]>
1 parent f17bc73 commit c3bda2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/api-resources/embeddings.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ describe('resource embeddings', () => {
4545
});
4646

4747
test('create: encoding_format=base64 should create float32 embeddings', async () => {
48-
const responsePromise = client.embeddings.create({
48+
const response = await client.embeddings.create({
4949
input: 'The quick brown fox jumped over the lazy dog',
5050
model: 'text-embedding-3-small',
5151
encoding_format: 'base64',
5252
});
53-
const response = await responsePromise;
5453

5554
expect(response.data?.at(0)?.embedding).toBeInstanceOf(Array);
5655
expect(Number.isFinite(response.data?.at(0)?.embedding.at(0))).toBe(true);

0 commit comments

Comments
 (0)