Skip to content

Commit a10b895

Browse files
feat: fixes tests where an array has to have unique enum values (#290)
1 parent a068043 commit a10b895

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ yarn add openai
1818

1919
## Usage
2020

21-
The full API of this library can be found in [API.md file](https://github.com/openai/openai-node/blob/master/api.md). The code below shows how to get started using the chat completions API.
21+
> [!IMPORTANT]
22+
> Previous versions of this SDK used a `Configuration` class. See the [v3 to v4 migration guide](https://github.com/openai/openai-node/discussions/217).
2223
2324
```js
2425
import OpenAI from 'openai';
@@ -39,9 +40,6 @@ async function main() {
3940
main();
4041
```
4142

42-
> [!IMPORTANT]
43-
> Previous versions of this SDK used a `Configuration` class. See the [v3 to v4 migration guide](https://github.com/openai/openai-node/discussions/217).
44-
4543
## Streaming Responses
4644

4745
We provide support for streaming responses using Server Sent Events (SSE).

tests/api-resources/fine-tunes.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('resource fineTunes', () => {
2121
const response = await openai.fineTunes.create({
2222
training_file: 'file-abc123',
2323
batch_size: 0,
24-
classification_betas: [0, 0, 0],
24+
classification_betas: [0.6, 1, 1.5, 2],
2525
classification_n_classes: 0,
2626
classification_positive_class: 'string',
2727
compute_classification_metrics: true,

0 commit comments

Comments
 (0)