dotnet / dotnet/msbuild

[aw] Expert Code Review (on open) has no AI credits pricing for model (gemini-3.6-flash)

Open
#15,001 0 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Workflow Failure

**Workflow:** [Expert Code Review (on open)](https://github.com/dotnet/msbuild/blob/main/.github/workflows/review-on-open.agent.md)
**Branch:** rainersigwald-patch-1
**Run:** https://github.com/dotnet/msbuild/actions/runs/34501925716
**Pull Request:** [#14999](https://github.com/dotnet/msbuild/pull/14999)

> [!WARNING]
> **Invalid or Unsupported Model**: The agent failed because the configured model name is invalid, unknown, or unavailable for this engine/account.

This is a **configuration issue**, not a transient error — retrying will not help.

How to fix this

Specify a valid model for the selected engine in the workflow frontmatter:

```yaml
---
engine: copilot
model: gpt-5-mini
---
```

To find valid models, check your engine/provider documentation (for Copilot see [supported models](https://docs.github.com/en/copilot/using-github-copilot/using-github-copilot-in-the-command-line#supported-models)).

If the error text is `No model available. Check policy enablement under GitHub Settings > Copilot`, the model is not disabled in the workflow but by Copilot policy. Enable the model under **GitHub Settings > Copilot > Policies** for the org/repo, or pick a model that is already enabled. This can also be triggered by a subagent (`task` tool) dispatch requesting a model that the policy does not allow, even when the main agent's model is enabled.

> [!WARNING]
> **Model has no AI credits pricing**: The agent failed because model `gemini-3.6-flash` is not in the built-in pricing table and no default fallback pricing is configured. The AWF API proxy rejected every inference request with HTTP 400.

This is a **configuration issue** — retrying will not help. The model must have pricing before the workflow can run.

How to fix this

**Option 1 — Add pricing in the workflow frontmatter:**

```yaml
models:
providers:
github-copilot:
models:
'gemini-3.6-flash':
cost:
# Placeholder values — replace with actual pricing for this model
input: "0e0" # $0.00 per million input tokens
output: "0e0" # $0.00 per million output tokens
cache_read: "0e0" # $0.00 per million cache-read tokens
cache_write: "0e0" # $0.00 per million cache-write tokens
```

Use the provider key matching your engine: `github-copilot` (Copilot), `anthropic` (Claude), `openai` (Codex), or `google` (Gemini). Only `input` and `output` are required; the rest default to zero (or `output` for `reasoning`).

**Option 2 — Map the model to a known model using the `models` field:**

If `gemini-3.6-flash` is an alias for a model already in the built-in pricing table, use the `models` frontmatter field to provide the mapping:

```yaml
models:
'gemini-3.6-flash':
- claude-sonnet-4-5
```

**Option 3 — Switch to a model already in the built-in pricing table:**

Replace `gemini-3.6-flash` in the workflow frontmatter with a model name that the AWF pricing system recognizes (e.g. `claude-sonnet-4-5`, `gpt-4.1`, `gemini-2.0-flash`).

### Action Required

**Assign this issue to an agent** to debug and fix the issue.

Debug with any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

````
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/dotnet/msbuild/actions/runs/34501925716
````

Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the `agentic-workflows` prompt.

- Start your agent
- Load the `agentic-workflows` skill from `.github/skills/agentic-workflows/SKILL.md` or
- Type `debug the agentic workflow review-on-open.agent failure in https://github.com/dotnet/msbuild/actions/runs/34501925716`

> [!TIP]
>
> Stop reporting this workflow as a failure
>
> To stop a workflow from creating failure issues, set `report-failure-as-issue: false` in its frontmatter:
> ```yaml
> safe-outputs:
> report-failure-as-issue: false
> ```
>
>

> Generated from [Expert Code Review (on open)](https://github.com/dotnet/msbuild/actions/runs/34501925716) · copilot · 703.4 AIC · [◷](https://github.com/search?q=repo%3Adotnet%2Fmsbuild+is%3Aissue+%22gh-aw-workflow-id%3A+review-on-open.agent%22&type=issues)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with .github/workflows/review-on-open.agent.md and inspect its model and provider frontmatter. Review the linked failed run and the documented supported-model and pricing options, then choose a valid configuration for gemini-3.6-flash or replace it with a recognized model. Done means the Expert Code Review workflow runs without the unsupported-model or missing-pricing errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.