feat: add translate command
This commit is contained in:
parent
eecbaf18b3
commit
899491e867
9 changed files with 236 additions and 9 deletions
3
cfg.go
3
cfg.go
|
|
@ -22,6 +22,9 @@ type ConfigDef struct {
|
|||
WatchedInterface string `env:"TG_WATCHED_INTERFACE"`
|
||||
MonthlyTrafficLimitGiB int `env:"TG_MONTHLY_TRAFFIC_LIMIT_GIB" env-default:"1000"`
|
||||
|
||||
// AI
|
||||
OpenAIApiKey string `env:"TG_OPENAI_API_KEY"`
|
||||
|
||||
// Parsed fields
|
||||
adminUidLookup map[int64]struct{}
|
||||
apiListenAddr net.Addr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue