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 CreateModeration(c *gin.Context)
- func CreateSpeech(c *gin.Context)
- func CreateTranscriptions(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 ChatCompletionsRequestTools
- type CreateAudioSpeech
- type CreateAudioTranscriptions
- type CreateCompletionsRequest
- type CreateEditRequest
- type CreateEmbeddingsRequest
- type CreateImageRequest
- type CreateModerationRequest
- 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 CreateModeration ¶
func CreateSpeech ¶
func CreateTranscriptions ¶
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"` Logprobs bool `json:"logprobs,omitempty"` TopLogprobs int `json:"top_logprobs,omitempty"` ResponseFormat map[string]interface{} `json:"response_format,omitempty"` Seed int `json:"seed,omitempty"` Tools []ChatCompletionsRequestTools `json:"tools,omitempty"` ToolChoice string `json:"tool_choice,omitempty"` }
type CreateAudioSpeech ¶
type CreateAudioTranscriptions ¶
type CreateAudioTranscriptions struct { File any `form:"file"` Model string `form:"model"` Language string `form:"language"` Prompt string `form:"prompt"` ResponseFormat string `form:"response_format"` Temperature float32 `form:"temperature"` TimestampGranularities []string `form:"timestamp_granularities"` }
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 CreateModerationRequest ¶
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.