Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions cmd/ggcode/adhoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ const (
adhocEnvRetryAlways = "GGCODE_LLM_RETRY_ALWAYS"
)

// adhocEnvTouched reports whether any GGCODE_LLM_* provider variable is set
// (used for the partial-pair diagnostic: env half-set deserves a hint).
func adhocEnvTouched() bool {
for _, k := range []string{adhocEnvBaseURL, adhocEnvModel, adhocEnvAPIKey, adhocEnvProtocol, adhocEnvContextWindow, adhocEnvMaxTokens, adhocEnvRetryAlways} {
if strings.TrimSpace(os.Getenv(k)) != "" {
return true
}
}
return false
}

// synthesizeAdhocConfig builds the in-memory Config for ad-hoc mode. It must
// never touch the filesystem: no load, no save path is viable later either,
// because root.go passes cfgFile="" which disables the hot-reload watcher and
Expand Down
Loading