We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec27e05 commit ca9a5cbCopy full SHA for ca9a5cb
tests/api-resources/embeddings.test.ts
@@ -55,11 +55,10 @@ describe('resource embeddings', () => {
55
});
56
57
test('create: encoding_format=default should create float32 embeddings', async () => {
58
- const responsePromise = client.embeddings.create({
+ const response = await client.embeddings.create({
59
input: 'The quick brown fox jumped over the lazy dog',
60
model: 'text-embedding-3-small',
61
62
- const response = await responsePromise;
63
64
expect(response.data?.at(0)?.embedding).toBeInstanceOf(Array);
65
expect(Number.isFinite(response.data?.at(0)?.embedding.at(0))).toBe(true);
0 commit comments