codegen

package
v0.0.0-...-edbed3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBPMLogicFromImage

func GetBPMLogicFromImage(image string, apiKey string, openaimodel string, text string, grid string, theme string, previouseobj []map[string]interface{}) (map[string]interface{}, error)

func GetHtmlCodeFromImage

func GetHtmlCodeFromImage(image string, apiKey string, openaimodel string, text string, grid string, theme string, previouseobj []map[string]interface{}) (map[string]interface{}, error)

func GetWorkFlowFromImage

func GetWorkFlowFromImage(image string, apiKey string, openaimodel string, text string, grid string, theme string, previouseobj []map[string]interface{}) (map[string]interface{}, error)

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 Message

type Message struct {
	Role    string `json:"role"`
	Content string `json:"content"`
	Name    string `json:"name,omitempty"`
}

type ResponseMessage

type ResponseMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL