Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TRUE bool = true
Functions ¶
func WithConfig ¶
WithConfig returns a new context with the provided config
Types ¶
type Config ¶
type Config struct {
ChatGPTApiUrl string `json:"chatGPTAPiUrl"`
ProviderBaseUrl string `json:"providerBaseUrl"`
SystemMessage string `json:"systemMessage"`
DefaultModel string `json:"defaultModel"`
Provider string `json:"provider"`
ColorScheme util.ColorScheme `json:"colorScheme"`
MaxAttachmentSizeMb int `json:"maxAttachmentSizeMb"`
IncludeReasoningTokensInContext *bool `json:"includeReasoningTokensInContext"`
SessionExportDir string `json:"sessionExportDir"`
}
func CreateAndValidateConfig ¶
func CreateAndValidateConfig(flags StartupFlags) Config
type StartupFlags ¶
type StartupFlags struct {
Model string
Theme string
Provider string
ProviderUrl string
StartNewSession bool
InitialPrompt string
}
func FlagsFromContext ¶ added in v0.8.0
func FlagsFromContext(ctx context.Context) (*StartupFlags, bool)
Click to show internal directories.
Click to hide internal directories.