Skip to content

Helper inference (titles): let the user pick the Fast service tier; the default fallback model fails on ChatGPT accounts #4262

Description

@VKirill

The workflow

bb generates thread titles and metadata with helper inference (BB_INFERENCE, BB_INFERENCE_FALLBACK). A new thread shows "Generating title" before it starts, and with the default Codex service that step runs on the default tier. Codex models offer a Fast tier (their service_tiers list { id: "priority", name: "Fast" }), and I want helper inference to use it, because it sits on the path of every new thread.

What happens today

On bb 0.43.3 there is no setting for it:

  • the server always sends reasoningEffort: "none" and nothing else (inference.ts);
  • experimental_aiInferenceCompleteInputSchema has no tier field, so an AI service cannot receive one;
  • the Codex service builds the Responses request without service_tier (chatgpt-client.ts).

Related: the default BB_INFERENCE_FALLBACK=codex/gpt-5.4-mini fails on a ChatGPT account with HTTP 400: The 'gpt-5.4-mini' model is not supported when using Codex with a ChatGPT account., so when the primary model times out (5 s) or returns 429 the title is lost after two attempts. Server log excerpt:

Thread metadata inference failed transiently; using fallback model {"errorCode":"timeout","fallbackModel":"codex/gpt-5.4-mini","model":"codex/gpt-5.6-luna","timeoutMs":5000}
Thread metadata inference failed {"attempts":2,"model":"codex/gpt-5.4-mini","errorMessage":"Codex inference request failed with HTTP 400: The 'gpt-5.4-mini' model is not supported when using Codex with a ChatGPT account."}

What you would expect

A managed setting BB_INFERENCE_SERVICE_TIER (fast | default), live-reloadable like the other AI-service settings, that reaches the AI service. For Codex, fast sends service_tier: "priority", the id Codex lists for Fast.

Prototype on my fork (small, 8 files): VKirill/bb@b1aa4b246.

  • packages/plugin-sdk/src/ai-services.ts: optional serviceTier: z.enum(["fast", "default"]) on the inference input.
  • packages/config/src/bb-app-managed-config.ts: BB_INFERENCE_SERVICE_TIER key.
  • apps/server: config.inferenceServiceTier, applied from managed config, passed by inference.ts when fast.
  • plugins/provider-codex/src/ai/chatgpt-client.ts: service_tier: "priority" when serviceTier === "fast", plus a test.

Checked against https://chatgpt.com/backend-api/codex/responses with a ChatGPT account: service_tier: "priority" returns 200; unknown values (flex, bogus) return 400 Unsupported service_tier. It runs on my server with BB_INFERENCE=codex/gpt-6-luna, BB_INFERENCE_FALLBACK=codex/gpt-5.6-luna, BB_INFERENCE_SERVICE_TIER=fast.

Open question: the stream's final event reported service_tier: "default" for both requests in my test, so it is not yet shown whether the backend honours priority for this helper endpoint on a ChatGPT plan. The request is accepted and validated either way.

Context and alternatives

  • Separately, I'd suggest changing the default fallback away from gpt-5.4-mini, or choosing it from the Codex model list, since it cannot work on ChatGPT accounts.
  • Workaround today: point BB_INFERENCE / BB_INFERENCE_FALLBACK at models the account supports.

AGENT GENERATED

Activity

  1. added
    providers
    provider-codex
    on Sep 24, 2026
  2. bb-slop-cop commented on Sep 24, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied and verified: Type Feature, Priority Medium, Effort Medium; labels: providers, provider-codex. All classification fields were previously unset.

    The primary request adds configurable helper-inference service tiers across configuration and provider interfaces. The reported fallback failure is a related defect claim. No report or pull request was created because the final Type is Feature, which this rule excludes from reproduction and fixes.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    provider-codexproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions