Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Items = []list.Item{ OpenaiModelItem(openai.GPT432K0314), OpenaiModelItem(openai.GPT432K), OpenaiModelItem(openai.GPT40314), OpenaiModelItem(openai.GPT4), OpenaiModelItem(openai.GPT3Dot5Turbo0301), OpenaiModelItem(openai.GPT3Dot5Turbo), }
Functions ¶
func ConvertItemToString ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func InitializeModel ¶
func InitializeModel(req *model.GenerateRequest) *Model
type NavigationStep ¶
type NavigationStep int
const ( Goals NavigationStep = iota Language LanguageVersion OutputPath OpenaiApiKey OpenaiModel Loading End )
type Navigator ¶
type Navigator struct {
}func NewNavigator ¶
func (*Navigator) Current ¶
func (n *Navigator) Current(pm *Model) NavigationStep
func (*Navigator) Next ¶
func (n *Navigator) Next(pm *Model) NavigationStep
type OpenaiModelInputModel ¶
func NewOpenaiModelInputModel ¶
func NewOpenaiModelInputModel() OpenaiModelInputModel
func (*OpenaiModelInputModel) Init ¶
func (m *OpenaiModelInputModel) Init()
func (*OpenaiModelInputModel) View ¶
func (m *OpenaiModelInputModel) View() string
type OpenaiModelItem ¶
type OpenaiModelItem string
func (OpenaiModelItem) FilterValue ¶
func (i OpenaiModelItem) FilterValue() string
type OutputPathInputModel ¶
func NewOutputPathInputModel ¶
func NewOutputPathInputModel() OutputPathInputModel
func (*OutputPathInputModel) Init ¶
func (m *OutputPathInputModel) Init()
func (*OutputPathInputModel) View ¶
func (m *OutputPathInputModel) View() string
Click to show internal directories.
Click to hide internal directories.