Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(cfg string) (ai_convert.IConverter, error)
Types ¶
type Config ¶
type Config struct {
APIKey string `json:"openai_api_key"` // APIKey is the authentication key for accessing OpenAI API.
Organization string `json:"openai_organization"` // Organization specifies the associated organization ID (optional).
Base string `json:"openai_api_base"` // Base is the base URL for OpenAI API. It can be customized if needed.
}
Config represents the configuration for OpenAI API. It includes the necessary fields for authentication and base URL configuration.
Click to show internal directories.
Click to hide internal directories.