Skip to content

Commit

Permalink
Add a instruction for setup sample.jsonl
Browse files Browse the repository at this point in the history
  • Loading branch information
KATTA-00 committed Aug 13, 2024
1 parent a63a998 commit 528931d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Import the `openai.finetunes` module.

```ballerina
import ballerinax/openai.finetunes;
import ballerina/io;
```

### Step 2: Instantiate a new connector
Expand All @@ -53,7 +54,7 @@ configurable string apiKey = ?;
final finetunes:Client openaiFinetunes = check new({
auth: {
apiKey
token: apiKey
}
});
```
Expand All @@ -62,6 +63,8 @@ final finetunes:Client openaiFinetunes = check new({

Now, utilize the available connector operations.

**Note**: First, create a sample.jsonl file in the same directory. This file should contain the training data formatted according to the guidelines provided [here](https://platform.openai.com/docs/api-reference/files/create).

#### Fine tuning the gpt-3.5-turbo model

```ballerina
Expand Down
5 changes: 4 additions & 1 deletion ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Import the `openai.finetunes` module.

```ballerina
import ballerinax/openai.finetunes;
import ballerina/io;
```

### Step 2: Instantiate a new connector
Expand All @@ -46,7 +47,7 @@ configurable string apiKey = ?;
final finetunes:Client openaiFinetunes = check new({
auth: {
apiKey
token: apiKey
}
});
```
Expand All @@ -55,6 +56,8 @@ final finetunes:Client openaiFinetunes = check new({

Now, utilize the available connector operations.

**Note**: First, create a sample.jsonl file in the same directory. This file should contain the training data formatted according to the guidelines provided [here](https://platform.openai.com/docs/api-reference/files/create).

#### Fine tuning the gpt-3.5-turbo model

```ballerina
Expand Down
5 changes: 4 additions & 1 deletion ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Import the `openai.finetunes` module.

```ballerina
import ballerinax/openai.finetunes;
import ballerina/io;
```

### Step 2: Instantiate a new connector
Expand All @@ -46,7 +47,7 @@ configurable string apiKey = ?;
final finetunes:Client openaiFinetunes = check new({
auth: {
apiKey
token: apiKey
}
});
```
Expand All @@ -55,6 +56,8 @@ final finetunes:Client openaiFinetunes = check new({

Now, utilize the available connector operations.

**Note**: First, create a sample.jsonl file in the same directory. This file should contain the training data formatted according to the guidelines provided [here](https://platform.openai.com/docs/api-reference/files/create).

#### Fine tuning the gpt-3.5-turbo model

```ballerina
Expand Down

0 comments on commit 528931d

Please sign in to comment.