Documentation
¶
Index ¶
- func ValueOf[T Constant[T]]() T
- type AudioTtsChunk
- type ChatCompletion
- type ChatCompletionChunk
- type Constant
- type Embedding
- type File
- type FineTuneEvent
- type JsonObject
- type JsonSchema
- type List
- type OrgAPIKey
- type ProjectAPIKey
- type Rerank
- type Revision
- type RevisionEvent
- type Text
- type TextCompletion
- type Usd
- type UserJwt
- type UserOrgJwt
- type UserOrgProjectJwt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioTtsChunk ¶ added in v0.7.0
type AudioTtsChunk string // Always "audio.tts.chunk"
func (AudioTtsChunk) Default ¶ added in v0.7.0
func (c AudioTtsChunk) Default() AudioTtsChunk
func (AudioTtsChunk) MarshalJSON ¶ added in v0.7.0
func (c AudioTtsChunk) MarshalJSON() ([]byte, error)
type ChatCompletion ¶ added in v0.7.0
type ChatCompletion string // Always "chat.completion"
func (ChatCompletion) Default ¶ added in v0.7.0
func (c ChatCompletion) Default() ChatCompletion
func (ChatCompletion) MarshalJSON ¶ added in v0.7.0
func (c ChatCompletion) MarshalJSON() ([]byte, error)
type ChatCompletionChunk ¶ added in v0.7.0
type ChatCompletionChunk string // Always "chat.completion.chunk"
func (ChatCompletionChunk) Default ¶ added in v0.7.0
func (c ChatCompletionChunk) Default() ChatCompletionChunk
func (ChatCompletionChunk) MarshalJSON ¶ added in v0.7.0
func (c ChatCompletionChunk) MarshalJSON() ([]byte, error)
type Embedding ¶ added in v0.7.0
type Embedding string // Always "embedding"
func (Embedding) MarshalJSON ¶ added in v0.7.0
type File ¶ added in v0.7.0
type File string // Always "file"
func (File) MarshalJSON ¶ added in v0.7.0
type FineTuneEvent ¶ added in v0.7.0
type FineTuneEvent string // Always "fine-tune-event"
func (FineTuneEvent) Default ¶ added in v0.7.0
func (c FineTuneEvent) Default() FineTuneEvent
func (FineTuneEvent) MarshalJSON ¶ added in v0.7.0
func (c FineTuneEvent) MarshalJSON() ([]byte, error)
type JsonObject ¶
type JsonObject string // Always "json_object"
func (JsonObject) Default ¶
func (c JsonObject) Default() JsonObject
func (JsonObject) MarshalJSON ¶
func (c JsonObject) MarshalJSON() ([]byte, error)
type JsonSchema ¶
type JsonSchema string // Always "json_schema"
func (JsonSchema) Default ¶
func (c JsonSchema) Default() JsonSchema
func (JsonSchema) MarshalJSON ¶
func (c JsonSchema) MarshalJSON() ([]byte, error)
type List ¶ added in v0.7.0
type List string // Always "list"
func (List) MarshalJSON ¶ added in v0.7.0
type OrgAPIKey ¶ added in v0.13.0
type OrgAPIKey string // Always "org_api_key"
func (OrgAPIKey) MarshalJSON ¶ added in v0.13.0
type ProjectAPIKey ¶ added in v0.13.0
type ProjectAPIKey string // Always "project_api_key"
func (ProjectAPIKey) Default ¶ added in v0.13.0
func (c ProjectAPIKey) Default() ProjectAPIKey
func (ProjectAPIKey) MarshalJSON ¶ added in v0.13.0
func (c ProjectAPIKey) MarshalJSON() ([]byte, error)
type Rerank ¶ added in v0.7.0
type Rerank string // Always "rerank"
func (Rerank) MarshalJSON ¶ added in v0.7.0
type Revision ¶ added in v0.13.0
type Revision string // Always "revision"
func (Revision) MarshalJSON ¶ added in v0.13.0
type RevisionEvent ¶ added in v0.13.0
type RevisionEvent string // Always "revision_event"
func (RevisionEvent) Default ¶ added in v0.13.0
func (c RevisionEvent) Default() RevisionEvent
func (RevisionEvent) MarshalJSON ¶ added in v0.13.0
func (c RevisionEvent) MarshalJSON() ([]byte, error)
type TextCompletion ¶ added in v0.7.0
type TextCompletion string // Always "text.completion"
func (TextCompletion) Default ¶ added in v0.7.0
func (c TextCompletion) Default() TextCompletion
func (TextCompletion) MarshalJSON ¶ added in v0.7.0
func (c TextCompletion) MarshalJSON() ([]byte, error)
type Usd ¶ added in v0.13.0
type Usd string // Always "USD"
func (Usd) MarshalJSON ¶ added in v0.13.0
type UserJwt ¶ added in v0.13.0
type UserJwt string // Always "user_jwt"
func (UserJwt) MarshalJSON ¶ added in v0.13.0
type UserOrgJwt ¶ added in v0.13.0
type UserOrgJwt string // Always "user_org_jwt"
func (UserOrgJwt) Default ¶ added in v0.13.0
func (c UserOrgJwt) Default() UserOrgJwt
func (UserOrgJwt) MarshalJSON ¶ added in v0.13.0
func (c UserOrgJwt) MarshalJSON() ([]byte, error)
type UserOrgProjectJwt ¶ added in v0.13.0
type UserOrgProjectJwt string // Always "user_org_project_jwt"
func (UserOrgProjectJwt) Default ¶ added in v0.13.0
func (c UserOrgProjectJwt) Default() UserOrgProjectJwt
func (UserOrgProjectJwt) MarshalJSON ¶ added in v0.13.0
func (c UserOrgProjectJwt) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.