Documentation
¶
Index ¶
- func CreateChatCompletions(c *gin.Context)
- func CreateCompletions(c *gin.Context)
- func CreateEdit(c *gin.Context)
- func CreateEmbeddings(c *gin.Context)
- func CreateImage(c *gin.Context)
- func GetApiKeys(c *gin.Context)
- func GetCreditGrants(c *gin.Context)
- func GetSubscription(c *gin.Context)
- func ListFiles(c *gin.Context)
- func ListModels(c *gin.Context)
- func Login(c *gin.Context)
- func RetrieveModel(c *gin.Context)
- type ChatCompletionsMessage
- type ChatCompletionsRequest
- type CreateCompletionsRequest
- type CreateEditRequest
- type CreateEmbeddingsRequest
- type CreateImageRequest
- type GetAccessTokenRequest
- type GetAccessTokenResponse
- type UserLogin
- func (userLogin *UserLogin) CheckPassword(state string, username string, password string) (string, int, error)
- func (userLogin *UserLogin) CheckUsername(state string, username string) (int, error)
- func (userLogin *UserLogin) GetAccessToken(code string) (string, int, error)
- func (userLogin *UserLogin) GetAuthorizedUrl(csrfToken string) (string, int, error)
- func (userLogin *UserLogin) GetState(authorizedUrl string) (string, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChatCompletions ¶
func CreateCompletions ¶
func CreateEdit ¶
func CreateEmbeddings ¶
func CreateImage ¶
func GetApiKeys ¶
func GetCreditGrants ¶
func GetSubscription ¶
func ListModels ¶
func RetrieveModel ¶
Types ¶
type ChatCompletionsMessage ¶
type ChatCompletionsRequest ¶
type ChatCompletionsRequest struct {
Model string `json:"model"`
Messages []ChatCompletionsMessage `json:"messages"`
Temperature int `json:"temperature,omitempty"`
TopP int `json:"top_p,omitempty"`
N int `json:"n,omitempty"`
Stream bool `json:"stream,omitempty"`
Stop string `json:"stop,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
PresencePenalty int `json:"presence_penalty,omitempty"`
FrequencyPenalty int `json:"frequency_penalty,omitempty"`
LogitBias map[string]interface{} `json:"logit_bias,omitempty"`
User string `json:"user,omitempty"`
}
type CreateCompletionsRequest ¶
type CreateCompletionsRequest struct {
Model string `json:"model"`
Prompt string `json:"prompt,omitempty"`
Suffix string `json:"suffix,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
Temperature int `json:"temperature,omitempty"`
TopP int `json:"top_p,omitempty"`
N int `json:"n,omitempty"`
Stream bool `json:"stream,omitempty"`
Logprobs int `json:"logprobs,omitempty"`
Echo bool `json:"echo,omitempty"`
Stop string `json:"stop,omitempty"`
PresencePenalty int `json:"presence_penalty,omitempty"`
FrequencyPenalty int `json:"frequency_penalty,omitempty"`
BestOf int `json:"best_of,omitempty"`
LogitBias map[string]interface{} `json:"logit_bias,omitempty"`
User string `json:"user,omitempty"`
}
type CreateEditRequest ¶
type CreateEmbeddingsRequest ¶
type CreateImageRequest ¶
type GetAccessTokenRequest ¶
type GetAccessTokenResponse ¶
type UserLogin ¶
type UserLogin struct {
// contains filtered or unexported fields
}
func (*UserLogin) CheckPassword ¶
func (*UserLogin) CheckUsername ¶
func (*UserLogin) GetAccessToken ¶
func (*UserLogin) GetAuthorizedUrl ¶
Click to show internal directories.
Click to hide internal directories.