Skip to content

Commit

Permalink
moved models back to root
Browse files Browse the repository at this point in the history
  • Loading branch information
conneroisu committed Dec 16, 2024
1 parent 471f653 commit 35a7207
Show file tree
Hide file tree
Showing 50 changed files with 1,997 additions and 1,670 deletions.
529 changes: 308 additions & 221 deletions README.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"

"github.com/conneroisu/groq-go/pkg/builders"
"github.com/conneroisu/groq-go/pkg/models"
)

const (
Expand All @@ -30,7 +29,7 @@ type (
// AudioRequest represents a request structure for audio API.
AudioRequest struct {
// Model is the model to use for the transcription.
Model models.AudioModel
Model AudioModel
// FilePath is either an existing file in your filesystem or a
// filename representing the contents of Reader.
FilePath string
Expand Down Expand Up @@ -146,7 +145,7 @@ func (c *Client) CreateTranslation(
func (c *Client) callAudioAPI(
ctx context.Context,
request AudioRequest,
endpointSuffix Endpoint,
endpointSuffix endpoint,
) (response AudioResponse, err error) {
var formBody bytes.Buffer
c.requestFormBuilder = builders.NewFormBuilder(&formBody)
Expand Down
Loading

0 comments on commit 35a7207

Please sign in to comment.