Skip to content

Commit

Permalink
lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gburt committed Jan 17, 2025
1 parent 8ea9b6f commit 83dc42e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type AudioRequest struct {
Reader io.Reader

Prompt string
Temperature float32 // defaults to 0, so fine to not be a pointer
Temperature float32 // Defaults to 0, so fine to not be a pointer.
Language string // Only for transcription.
Format AudioResponseFormat
TimestampGranularities []TranscriptionTimestampGranularity // Only for transcription.
Expand Down
4 changes: 2 additions & 2 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ type PromptTokensDetails struct {
CachedTokens int `json:"cached_tokens"`
}

// NewFloat returns a pointer to a float, useful for setting the temperature on some APIs
// NewFloat returns a pointer to a float, useful for setting the temperature on some APIs.
func NewFloat(v float32) *float32 {
return &v
}

// NewInt returns a pointer to an int, useful for setting the seed and other nullable parameters
// NewInt returns a pointer to an int, useful for setting the seed and other nullable parameters.
func NewInt(v int) *int {
return &v
}

0 comments on commit 83dc42e

Please sign in to comment.