config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config contains code related to application configuration.

Index

Constants

View Source
const (
	GeminiChatterAdapter   ChatterAdapterType = "Gemini"
	OpenAIChatterAdapter   ChatterAdapterType = "OpenAI"
	NoScriberAdapter       ScriberAdapterType = "None"
	TemplateScriberAdapter ScriberAdapterType = "Template"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatterAdapterType

type ChatterAdapterType string

type ChatterConfig

type ChatterConfig struct {
	Adapter       ChatterAdapterType
	DefaultPrompt string
	Prompts       map[string]string
	Adapters      struct {
		chatter.Gemini
		chatter.OpenAI
	}
}

type Config

type Config struct {
	Chatter ChatterConfig
	Scriber ScriberConfig
}

func Load

func Load() (Config, error)

type ScriberAdapterType

type ScriberAdapterType string

type ScriberConfig

type ScriberConfig struct {
	Adapter  ScriberAdapterType
	Adapters struct {
		scriber.TemplateScribe
	}
}

Jump to

Keyboard shortcuts

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