Skip to content

Commit e4bdd33

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

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
@@ -34,11 +34,10 @@ describe('resource embeddings', () => {
3434
});
3535

3636
test('create: encoding_format=float should create float32 embeddings', async () => {
37-
const responsePromise = client.embeddings.create({
37+
const response = await client.embeddings.create({
3838
input: 'The quick brown fox jumped over the lazy dog',
3939
model: 'text-embedding-3-small',
4040
});
41-
const response = await responsePromise;
4241

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

0 commit comments

Comments
 (0)