72e6b46cde
- Branding: default app name MokoGitea -> MokoGIT; all standalone 'MokoGitea' brand strings, comments, and copyright headers -> MokoGIT - Special repo/config names: .mokogitea/.mokogitea-private -> .mokogit/ .mokogit-private (workflow discovery, issue/PR templates, profile+wiki repo names in header.go, config dir renamed) - Lowercase: mokogitea -> mokogit (docker image refs, ntfy topic, mail tags, wiki docs, Joomla element/targetplatform, MCP package docs) - Actions system user mokogitea-actions -> mokogit-actions + DB migration #369 to rename the existing id=-2 user in place - Icon: bundle Moko favicon.svg as public/assets/img/{favicon,logo}.svg; wire PWA manifest (SiteManifest) + nav logo to the SVG - CHANGELOG entry documenting the rebrand Shared MOKOGITEA_* CI/compose env + org-secret names are intentionally left for the coordinated server cutover to avoid breaking cross-repo CI. Claude-Session: https://claude.ai/code/session_01Bqe7fAuHQeiLueYfeHFrHw
26 lines
694 B
Go
26 lines
694 B
Go
// Copyright 2026 The MokoGIT Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package setting
|
|
|
|
// AI settings
|
|
var (
|
|
AI = struct {
|
|
Enabled bool
|
|
DefaultModel string `ini:"DEFAULT_MODEL"`
|
|
DefaultKey string `ini:"DEFAULT_API_KEY"`
|
|
ClaudeBinPath string `ini:"CLAUDE_BIN_PATH"`
|
|
}{
|
|
Enabled: false,
|
|
DefaultModel: "claude-sonnet-4-6",
|
|
}
|
|
)
|
|
|
|
func loadAIFrom(rootCfg ConfigProvider) {
|
|
sec := rootCfg.Section("ai")
|
|
AI.Enabled = sec.Key("ENABLED").MustBool(AI.Enabled)
|
|
AI.DefaultModel = sec.Key("DEFAULT_MODEL").MustString(AI.DefaultModel)
|
|
AI.DefaultKey = sec.Key("DEFAULT_API_KEY").String()
|
|
AI.ClaudeBinPath = sec.Key("CLAUDE_BIN_PATH").MustString("claude")
|
|
}
|