Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
i9si authored May 7, 2024
2 parents 485c23e + 8606391 commit 58bb0a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions example/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"os"

"github.com/Simplou/openai"
"github.com/Simplou/openai/v1"
)

const fileName = "hello.mp3"
Expand Down Expand Up @@ -35,11 +35,11 @@ func tts() {

func whisper() {
transcription, err := openai.Transcription(client, httpClient, &openai.TranscriptionsRequestBody{
Model: openai.DefaultTranscriptionModel,
Filename: fileName,
Model: openai.DefaultTranscriptionModel,
Filename: fileName,
AudioFilePath: audioFilePath,
})
if err != nil{
if err != nil {
panic(err)
}
println(transcription.Text)
Expand Down
2 changes: 1 addition & 1 deletion example/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

openai "github.com/Simplou/openai"
"github.com/Simplou/openai/v1"
)

func chat() {
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/Simplou/goxios"
openai "github.com/Simplou/openai"
"github.com/Simplou/openai/v1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Simplou/openai
module github.com/Simplou/openai/v1

go 1.22.0

Expand Down

0 comments on commit 58bb0a2

Please sign in to comment.