codegen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpenAI models
	OPENAI_GPT3DOT5_TURBO int = 0
	OPENAI_GPT4_TURBO     int = 1
	OPENAI_GPT4O          int = 2
	OPENAI_GPT4O_MINI     int = 3
	OPENAI_O1             int = 4
	OPENAI_O3_MINI        int = 5
	OPENAI_GPT5           int = 6

	// Anthropic models
	ANTHROPIC_CLAUDE_SONNET_4   int = 100
	ANTHROPIC_CLAUDE_SONNET_4_5 int = 101
	ANTHROPIC_CLAUDE_OPUS_4     int = 102
	ANTHROPIC_CLAUDE_OPUS_4_6   int = 103
	ANTHROPIC_CLAUDE_SONNET_4_6 int = 104
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGen

type CodeGen struct {
	// contains filtered or unexported fields
}

func NewCodeGen

func NewCodeGen(openAISecretKey, anthropicSecretKey string, model int) (*CodeGen, error)

func (*CodeGen) GenerateLayerFunction

func (cg *CodeGen) GenerateLayerFunction(fnName, description string, inputs, outputs []string) (string, error)

Jump to

Keyboard shortcuts

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