Tiny harness optimized for small LLMs
package mainimport ( "fmt" "log" "os" tea "charm.land/bubbletea/v2" "github.com/charmbracelet/bubbles/textinput" "github.com/joho/godotenv")type model struct { input textinput.Model history []string todo []string // extensive list of tasks currentModel string busy bool}func (m model) View() tea.View { panic("unimplemented")}func initialModel() model { ti := textinput.New() ti.Placeholder = "Write a small todo list app." ti.Focus() return model{input: ti}}func (m model) Init() tea.Cmd { textinput.Blink() return nil}func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyPressMsg: switch msg.String() { case "ctrl+q": return m, tea.Quit } } return m, nil}func main() { if err := godotenv.Load(); err != nil { log.Println("no .env file, using environment") } api := InitAPI(os.Getenv("API_BASE"), os.Getenv("API_KEY")) fmt.Println(api.GetModels())}