diff --git a/audio.go b/audio.go index cfa1eb2a..03b96754 100644 --- a/audio.go +++ b/audio.go @@ -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. diff --git a/common.go b/common.go index 1564d454..a73a9fe2 100644 --- a/common.go +++ b/common.go @@ -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 }