Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvTimezoneShiftSeconds = "TIMEZONE_SHIFT_SECONDS" EnvTelegramBotToken = "TELEGRAM_BOT_TOKEN" //nolint:gosec EnvTelegramBotWebhookURL = "TELEGRAM_BOT_WEBHOOK_URL" EnvTelegramBotWebhookPort = "TELEGRAM_BOT_WEBHOOK_PORT" EnvTelegramBotAPIEndpoint = "TELEGRAM_BOT_API_ENDPOINT" EnvSlackClientID = "SLACK_CLIENT_ID" EnvSlackClientSecret = "SLACK_CLIENT_SECRET" EnvSlackWebhookPort = "SLACK_WEBHOOK_PORT" EnvDiscordBotToken = "DISCORD_BOT_TOKEN" //nolint:gosec EnvDiscordBotPublicKey = "DISCORD_BOT_PUBLIC_KEY" EnvDiscordBotWebhookPort = "DISCORD_BOT_WEBHOOK_PORT" EnvOpenAIAPISecret = "OPENAI_API_SECRET" //nolint:gosec EnvOpenAIAPIHost = "OPENAI_API_HOST" EnvOpenAIAPIModelName = "OPENAI_API_MODEL_NAME" EnvOpenAIAPITokenLimit = "OPENAI_API_TOKEN_LIMIT" //nolint:gosec EnvPineconeProjectName = "PINECONE_PROJECT_NAME" EnvPineconeEnvironment = "PINECONE_ENVIRONMENT" EnvPineconeAPIKey = "PINECONE_API_KEY" //nolint:gosec EnvPineconeChatHistoryIndexName = "PINECONE_CHAT_HISTORY_INDEX_NAME" EnvDBConnectionString = "DB_CONNECTION_STR" EnvRedisHost = "REDIS_HOST" EnvRedisPort = "REDIS_PORT" EnvRedisTLSEnabled = "REDIS_TLS_ENABLED" EnvRedisUsername = "REDIS_USERNAME" EnvRedisPassword = "REDIS_PASSWORD" EnvRedisDB = "REDIS_DB" EnvRedisClientCacheEnabled = "REDIS_CLIENT_CACHE_ENABLED" EnvLogLevel = "LOG_LEVEL" EnvLogFilePath = "LOG_FILE_PATH" EnvHardLimitManualRecapRatePerSeconds = "HARD_LIMIT_MANUAL_RECAP_RATE_PER_SECONDS" EnvHardLimitSummarizeWebpageRatePerSeconds = "HARD_LIMIT_SMR_WEBPAGE_RATE_PER_SECONDS" )
Variables ¶
This section is empty.
Functions ¶
func NewTestConfig ¶
func NewTestConfig() func() *Config
Types ¶
type Config ¶
type Config struct { TimezoneShiftSeconds int64 Telegram SectionTelegram OpenAI SectionOpenAI Pinecone SectionPinecone CloverDBPath string DB SectionDB Slack SectionSlack Discord SectionDiscord Redis SectionRedis LogLevel string LogFilePath string HardLimit SectionHardLimit }
type SectionDiscord ¶
type SectionHardLimit ¶ added in v0.16.0
type SectionOpenAI ¶ added in v0.18.0
type SectionPinecone ¶
type SectionPinecone struct { ProjectName string Environment string APIKey string Indexes SectionPineconeIndexes }
type SectionPineconeIndexes ¶
type SectionPineconeIndexes struct {
ChatHistoryIndexName string
}
type SectionRedis ¶
type SectionSlack ¶
Click to show internal directories.
Click to hide internal directories.