window

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeChatWindow

func MakeChatWindow() fyne.CanvasObject

func MakeLogListTab

func MakeLogListTab() fyne.CanvasObject

func MakeRoleWindow

func MakeRoleWindow(win fyne.Window) fyne.CanvasObject

func MakeSettingWindow

func MakeSettingWindow() fyne.CanvasObject

Types

type AppConfig

type AppConfig struct {
	Theme         string `json:"theme,omitempty"`
	GPTType       string `json:"gptType"`
	AzureApiKey   string `json:"azureApiKey"`
	AzureEndpoint string `json:"azureEndpoint"`
	Model         string `json:"model,omitempty"`
	OpenaiApiKey  string `json:"OPENAI_API_KEY"`
	HistoryLimit  int    `json:"HistoryLimit,omitempty"`
	FyneFont      string `json:"FYNE_FONT,omitempty"`
	HttpsProxy    string `json:"HTTPS_PROXY,omitempty"`
	HttpTimeout   int    `json:"HTTP_TIMEOUT,omitempty"`
	WindWidth     int    `json:"windWidth,omitempty"`
	WindHeight    int    `json:"windHeight,omitempty"`
	Prompt        string `json:"prompt,omitempty"`
}

type PromptItem

type PromptItem struct {
	Act    string `json:"act,omitempty"`
	Prompt string `json:"prompt,omitempty"`
}

Jump to

Keyboard shortcuts

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