Skip to content

Commit

Permalink
feat: fixes tests where an array has to have unique enum values (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Sep 6, 2023
1 parent a068043 commit a10b895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ yarn add openai

## Usage

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.
> [!IMPORTANT]
> Previous versions of this SDK used a `Configuration` class. See the [v3 to v4 migration guide](https://github.com/openai/openai-node/discussions/217).
```js
import OpenAI from 'openai';
Expand All @@ -39,9 +40,6 @@ async function main() {
main();
```

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

We provide support for streaming responses using Server Sent Events (SSE).
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/fine-tunes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('resource fineTunes', () => {
const response = await openai.fineTunes.create({
training_file: 'file-abc123',
batch_size: 0,
classification_betas: [0, 0, 0],
classification_betas: [0.6, 1, 1.5, 2],
classification_n_classes: 0,
classification_positive_class: 'string',
compute_classification_metrics: true,
Expand Down

0 comments on commit a10b895

Please sign in to comment.