Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixes tests where an array has to have unique enum values #290

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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