Skip to content

Commit ca9a5cb

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/api-resources/embeddings.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ describe('resource embeddings', () => {
5555
});
5656

5757
test('create: encoding_format=default should create float32 embeddings', async () => {
58-
const responsePromise = client.embeddings.create({
58+
const response = await client.embeddings.create({
5959
input: 'The quick brown fox jumped over the lazy dog',
6060
model: 'text-embedding-3-small',
6161
});
62-
const response = await responsePromise;
6362

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

0 commit comments

Comments
 (0)