Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAIConfig ¶
func NewOpenAIConfig ¶
func NewOpenAIConfig(opts ...OpenAIConfigOption) *OpenAIConfig
type OpenAIConfigOption ¶
type OpenAIConfigOption func(*OpenAIConfig)
func WithAlias ¶
func WithAlias(name string) OpenAIConfigOption
func WithApiKey ¶
func WithApiKey(apiKey string) OpenAIConfigOption
func WithBaseURL ¶
func WithBaseURL(baseURL string) OpenAIConfigOption
func WithDim ¶
func WithDim(dim int64) OpenAIConfigOption
func WithModel ¶
func WithModel(model string) OpenAIConfigOption
type OpenAIEmbedder ¶
type OpenAIEmbedder struct {
// contains filtered or unexported fields
}
func NewOpenAIEmbedder ¶
func NewOpenAIEmbedder(ctx context.Context, cfg *OpenAIConfig) *OpenAIEmbedder
Click to show internal directories.
Click to hide internal directories.