Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5d9ec26

Browse files
authoredSep 3, 2024
fix(examples/fine-tuning): used an old constant name (openai#34)
1 parent 7e81719 commit 5d9ec26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎examples/fine-tuning/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
data, err := os.Open("./fine-tuning-data.jsonl")
2020
file, err := client.Files.New(ctx, openai.FileNewParams{
2121
File: openai.F[io.Reader](data),
22-
Purpose: openai.F(openai.FileNewParamsPurposeFineTune),
22+
Purpose: openai.F(openai.FilePurposeFineTune),
2323
})
2424
if err != nil {
2525
panic(err)

0 commit comments

Comments
 (0)
Please sign in to comment.