Skip to content

Commit 86cd9ef

Browse files
Copilotpelikhan
andauthored
[WIP] Fix failing GitHub Actions job lint-go (#37891)
* Initial plan * fix: remove unused effective token declarations Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 2dceec2 commit 86cd9ef

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

pkg/cli/effective_tokens.go

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package cli
22

3-
// This file provides command-line interface functionality for gh-aw.
43
// This file (effective_tokens.go) implements the Effective Tokens (ET) specification
54
// defined in docs/src/content/docs/specs/effective-tokens-specification.md.
65
//
@@ -26,40 +25,6 @@ package cli
2625
// - Computing effective tokens from raw per-model token usage data
2726
// - Populating effective token counts on TokenUsageSummary after parsing
2827

29-
import (
30-
_ "embed"
31-
32-
"github.com/github/gh-aw/pkg/logger"
33-
"github.com/github/gh-aw/pkg/types"
34-
)
35-
36-
var effectiveTokensLog = logger.New("cli:effective_tokens")
37-
38-
//go:embed data/model_multipliers.json
39-
var modelMultipliersJSON []byte
40-
41-
const (
42-
defaultMergedModelMultipliersPath = "/tmp/gh-aw/model_multipliers.json"
43-
mergedModelMultipliersPathEnvVar = "GH_AW_MERGED_MODEL_MULTIPLIERS_PATH"
44-
modelMultipliersEnvVar = "GH_AW_MODEL_MULTIPLIERS"
45-
)
46-
47-
// modelMultipliersData is the top-level structure of model_multipliers.json.
48-
type modelMultipliersData struct {
49-
Version string `json:"version"`
50-
Description string `json:"description"`
51-
ReferenceModel string `json:"reference_model"`
52-
TokenClassWeights types.TokenClassWeights `json:"token_class_weights"`
53-
Multipliers map[string]float64 `json:"multipliers"`
54-
}
55-
56-
// loadedMultipliers is the parsed multiplier table, keyed by lowercase model name.
57-
// Initialized once on first call to effectiveTokenMultiplier.
58-
var loadedMultipliers map[string]float64
59-
60-
// loadedTokenWeights holds the token class weights from the JSON file.
61-
var loadedTokenWeights types.TokenClassWeights
62-
6328
func providerIncludesCacheReadsInInput(normalizedProvider string) bool {
6429
// Cache read accounting is provider-specific:
6530
// - bundled semantics: cache_read_tokens are already included in input_tokens,

0 commit comments

Comments
 (0)