MCPcopy Create free account
hub / github.com/github/gh-aw / TestComputeModelInferenceAICGitHubModels

Function TestComputeModelInferenceAICGitHubModels

pkg/cli/model_costs_test.go:48–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestComputeModelInferenceAICGitHubModels(t *testing.T) {
49 // provider="github_models" is written by the AWF proxy for Copilot engine runs;
50 // it must normalize to "github-copilot" so pricing is found and AIC is non-zero.
51 aicViaGitHubModels := computeModelInferenceAIC("github_models", "claude-sonnet-4.6", 1000, 200, 0, 0, 0)
52 aicViaGitHubCopilot := computeModelInferenceAIC("github-copilot", "claude-sonnet-4.6", 1000, 200, 0, 0, 0)
53 assert.Greater(t, aicViaGitHubModels, 0.0, "github_models provider should produce non-zero AIC")
54 assert.InDelta(t, aicViaGitHubCopilot, aicViaGitHubModels, 1e-9, "github_models and github-copilot should yield identical AIC")
55}
56
57func TestComputeModelInferenceAICCopilotAlias(t *testing.T) {
58 // provider="copilot" is another accepted alias for "github-copilot".

Callers

nothing calls this directly

Calls 1

computeModelInferenceAICFunction · 0.85

Tested by

no test coverage detected