Add Readme example to example_test.go (#298)
* Add speech to text example in docs * Add caption formats for audio transcription * Add caption example to README * Address sanity check errors * Add tests for decodeResponse * Use typechecker for audio response format * Decoding response refactors * Migrated examples to example_test.go * Add some executable examples * Update error docs * Avoid linting example files which break conventions * Restore README examples * Enable linting for example_test
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// common.go defines common types used throughout the OpenAI API.
|
||||
package openai
|
||||
|
||||
// common.go defines common types used throughout the OpenAI API.
|
||||
|
||||
// Usage Represents the total token usage per request to OpenAI.
|
||||
type Usage struct {
|
||||
PromptTokens int `json:"prompt_tokens"`
|
||||
|
||||
Reference in New Issue
Block a user