Skip to content

[aw] Daily Elixir Credo Snippet Audit has no AI credits pricing for model (claude-opus-5) #48560

Description

@github-actions

Workflow Failure

Workflow: Daily Elixir Credo Snippet Audit
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/30340496775

Warning

Model has no AI credits pricing: The agent failed because model claude-opus-5 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:

models:
  providers:
    anthropic:
      models:
          'claude-opus-5':
          cost:
            input: "0e0"      # $0.00 per million input tokens
            output: "0e0"     # $0.00 per million output 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 claude-opus-5 is an alias for a model already in the built-in pricing table, use the models frontmatter field to provide the mapping:

models:
  'claude-opus-5':
    - claude-sonnet-4-5

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

Replace claude-opus-5 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).

Warning

Engine Failure: The claude engine terminated unexpectedly.

Last agent output:

2026-07-28T08:02:03.639Z [DEBUG] [API REQUEST] /v1/messages source=sdk
2026-07-28T08:02:03.869Z [ERROR] API error (attempt 1/11): 400 400 Model "claude-opus-5" has no AI credits pricing and no default pricing is configured. Set apiProxy.defaultAiCreditsPricing in the AWF config (e.g. {"input": 3.0, "output": 15.0}) to provide a fallback rate, or add the model to the pricing table.
2026-07-28T08:02:03.870Z [WARN] [server-fallback] 400 attributed (unattributed) — stripping and retrying
2026-07-28T08:02:03.870Z [DEBUG] [API:timing] dispatching to firstParty model=claude-opus-5[1m]
2026-07-28T08:02:03.871Z [DEBUG] [API REQUEST] /v1/messages source=sdk
2026-07-28T08:02:04.178Z [ERROR] API error (attempt 1/11): 400 400 Model "claude-opus-5" has no AI credits pricing and no default pricing is configured. Set apiProxy.defaultAiCreditsPricing in the AWF config (e.g. {"input": 3.0, "output": 15.0}) to provide a fallback rate, or add the model to the pricing table.
{"type":"assistant","message":{"id":"c3ddd495-3c95-4ac7-a012-f245a0dc0f55","container":null,"model":"<synthetic>","role":"assistant","stop_details":null,"stop_reason":"stop_sequence","stop_sequence":"","type":"message","usage":{"input_tokens":0,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":null,"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":null,"iterations":null,"speed":null},"content":[{"type":"text","text":"API Error: 400 Model \"claude-opus-5\" has no AI credits pricing and no default pricing is configured. Set apiProxy.defaultAiCreditsPricing in the AWF config (e.g. {\"input\": 3.0, \"output\": 15.0}) to provide a fallback rate, or add the model to the pricing table."}],"context_management":null},"parent_tool_use_id":null,"session_id":"b7b51505-eb0c-4fa9-954b-e095f299ae74","uuid":"6f3c8a6b-ab4e-427a-805f-45b2fa7b0370","timestamp":"2026-07-28T08:02:04.189Z","error":"unknown","is_api_error_message":true}
{"is_error":true,"duration_api_ms":0,"num_turns":1,"stop_reason":"stop_sequence","session_id":"b7b51505-eb0c-4fa9-954b-e095f299ae74","total_cost_usd":0,"usage":{"input_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{},"permission_denials":[],"terminal_reason":"api_error","fast_mode_state":"off","fast_mode_disabled_reason":"disabled_by_env","subtype":"success","api_error_status":400,"result":"API Error: 400 Model \"claude-opus-5\" has no AI credits pricing and no default pricing is configured. Set apiProxy.defaultAiCreditsPricing in the AWF config (e.g. {\"input\": 3.0, \"output\": 15.0}) to provide a fallback rate, or add the model to the pricing table.","type":"result","duration_ms":633,"uuid":"21453887-622c-47a0-9729-feaa52d30254"}
2026-07-28T08:02:04.187Z [ERROR] Error in API request: 400 Model "claude-opus-5" has no AI credits pricing and no default pricing is configured. Set apiProxy.defaultAiCreditsPricing in the AWF config (e.g. {"input": 3.0, "output": 15.0}) to provide a fallback rate, or add the model to the pricing table.
2026-07-28T08:02:04.196Z [DEBUG] LSP server manager shut down successfully

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/github/gh-aw/actions/runs/30340496775
Manually invoke the agent

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

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:

safe-outputs:
  report-failure-as-issue: false

Generated from Daily Elixir Credo Snippet Audit ·

  • expires on Jul 28, 2026, 8:05 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions