common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProfilesPath    string
	OpenAiApiKey    string
	AnthropicApiKey string
	MaritacaApiKey  string
	GroqApiKey      string
	StyledTerminal  bool
	OllamaHost      string
	OllamaModel     string
}

func NewConfig

func NewConfig() Config

type IStorage

type IStorage interface {
	GetConfig() Config
	SetConfig(Config)
	LoadProfileData(string) (*profile.Profile, error)
	GetCachedProfiles() map[string]profile.ProfileInfo
	GetChatHistory() chat.ChatHistory
	SetChatHistory(chat.ChatHistory)
	GetStorageFilepath() string
	GetCurrProfile() profile.Profile
	SetCurrProfile(profile.Profile)
	GetCurrModelSlug() string
	SetCurrModelSlug(string)
	SetCachedProfiles(map[string]profile.ProfileInfo)
	Clear()
	IsNew() bool
	Save() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳