Documentation ¶
Index ¶
- func GetBPMLogicFromImage(image string, apiKey string, openaimodel string, text string, grid string, ...) (map[string]interface{}, error)
- func GetHtmlCodeFromImage(image string, apiKey string, openaimodel string, text string, grid string, ...) (map[string]interface{}, error)
- func GetWorkFlowFromImage(image string, apiKey string, openaimodel string, text string, grid string, ...) (map[string]interface{}, error)
- type Choice
- type GPT4VCompletionRequest
- type GPT4VCompletionResponse
- type Message
- type ResponseMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBPMLogicFromImage ¶
func GetHtmlCodeFromImage ¶
Types ¶
type Choice ¶
type Choice struct {
Message ResponseMessage `json:"message"`
}
type GPT4VCompletionRequest ¶
type GPT4VCompletionRequest struct { Model string `json:"model"` Messages []map[string]interface{} `json:"messages"` Functions []interface{} `json:"functions,omitempty"` FunctionCall interface{} `json:"function_call,omitempty"` Stream bool `json:"stream,omitempty"` Temperature float64 `json:"temperature,omitempty"` TopP float64 `json:"top_p,omitempty"` MaxTokens int `json:"max_tokens,omitempty"` N int `json:"n,omitempty"` BestOf int `json:"best_of,omitempty"` FrequencyPenalty float64 `json:"frequency_penalty,omitempty"` PresencePenalty float64 `json:"presence_penalty,omitempty"` Seed int `json:"seed,omitempty"` LogitBias map[string]float64 `json:"logit_bias,omitempty"` Stop interface{} `json:"stop,omitempty"` }
type GPT4VCompletionResponse ¶
type GPT4VCompletionResponse struct { Choices []Choice `json:"choices"` Created time.Time `json:"created"` // Added for debugging Model string `json:"model"` // Added for debugging FP bool `json:"system_fingerprint"` // Added for debugging ID string `json:"id"` // Added for debugging Object string `json:"object"` // Added for debugging }
type ResponseMessage ¶
Click to show internal directories.
Click to hide internal directories.