Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddingData ¶
type EmbeddingData struct {
Object string `json:"object"`
Index int `json:"index"`
Embedding EmbeddingDataUnion `json:"embedding"`
}
type EmbeddingDataUnion ¶
type EmbeddingDataUnion struct {
OfFloat []float64 `json:",omitempty"`
OfBase64 *string `json:",omitempty"`
}
func (*EmbeddingDataUnion) MarshalJSON ¶
func (u *EmbeddingDataUnion) MarshalJSON() ([]byte, error)
func (*EmbeddingDataUnion) UnmarshalJSON ¶
func (u *EmbeddingDataUnion) UnmarshalJSON(data []byte) error
type InputUnion ¶
func (*InputUnion) MarshalJSON ¶
func (u *InputUnion) MarshalJSON() ([]byte, error)
func (*InputUnion) UnmarshalJSON ¶
func (u *InputUnion) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.