Skip to content

chore(catalog): add fireworks/accounts/fireworks/models/qwen4-max - #1905

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
chore/add-model-fireworks-accounts-fireworks-models-qwen4-max
Nov 24, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
chore/add-model-fireworks-accounts-fireworks-models-qwen4-max

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated targeted model-catalog addition from the model-drop workflow.

Model display name check

No new models are missing a required display name.

Model validation prompt

Paste this prompt into an agent that has a Braintrust API key to validate these models end to end.

Prompt
You are validating a newly added Fireworks model against Braintrust, end to end. Do not edit code.

## Scope

Primary model: `accounts/fireworks/models/qwen4-max` (display name "Qwen4 Max")
- format: `openai`; flavor: `chat`; available_providers: `fireworks`
- capability flags: none set (multimodal, reasoning and streaming flags were not verified by an official statement naming this model on Serverless, so they are omitted)
- token limits: none set (Fireworks lists a "262k tokens" context length; the exact input/output caps were not documented, so they are omitted)
- standard prices: input $1.50, output $4.50, cached input $0.075 per million tokens
- priority tier (`service_tier: "priority"`, endpoint `api.fireworks.ai`): input $1.875, output $5.625, cached input $0.09375 per million tokens
- fallback_models: `qwen/qwen4-max`

Companion (already in catalog, ID only): `qwen/qwen4-max` (OpenRouter)

Changed fields: new entry in `model_list.json` and `index.ts` provider mapping; `qwen/qwen4-max` was not modified.

## Setup

- The hosted Gateway (`https://gateway.braintrust.dev`) loads `packages/proxy/schema/model_list.json` from `main`, so run this after the PR merges. To test earlier, run a local Gateway from `braintrustdata/braintrust` with its `proxy` submodule on this branch and `MODEL_CATALOG_REFRESH_SECONDS=0`.
- Authenticate with `BRAINTRUST_API_KEY` for an organization with Fireworks and OpenRouter keys. First check which providers the credential can access and note their exact endpoint names. Report inaccessible providers as blocked and do not probe them.
- Send every request with `x-bt-project-name: model-validation`.

## Documentation pass

Read https://fireworks.ai/models/fireworks/qwen4-max, https://docs.fireworks.ai/serverless/pricing and https://docs.fireworks.ai/serverless/serverless-modes. Compare them with the catalog entry and report mismatches. Check maximum input, maximum output and total context window as separate values (the page states a 262k context; the input and output caps are undocumented). Confirm capabilities (function calling and image input are listed as supported on the model page) and whether reasoning is supported. Check the Fast, Ultra-fast, Flex and batch tiers (none were listed for this model at research time). Check deprecation and retirement notices for the exact model ID. List differences from the previous family model `accounts/fireworks/models/qwen3p8-max` that affect API callers. Each difference becomes a Gateway test case. Use official sources only.

## Gateway pass

For `accounts/fireworks/models/qwen4-max`, test `/v1/chat/completions`, `/v1/responses` and `/v1/messages`, plus the native format. Test non-streaming and streaming, system prompts and multi-turn conversations. Where supported, test tool calls (including parallel calls and tool-result round trips), JSON-schema structured output, image input and reasoning effort. Also test `service_tier: "priority"` and check the billed rates. Pin every request to the intended provider with `x-bt-endpoint-name` and confirm `x-bt-used-endpoint` matches before counting a pass. Check usage token counts, and check that a repeated request with `x-bt-use-cache: always` is served from cache. Send one basic request to `qwen/qwen4-max`.

## Product pass

Check that the model appears in the playground picker as "Qwen4 Max", and that logged spans in the `model-validation` project show token usage and estimated cost consistent with the catalog prices.

## Report

Return a pass/fail/blocked/skip table per model and check. Report `no provider registered` or `Configured providers` errors as blocked only if the preflight showed the endpoint was unavailable. Otherwise report them as failures. For each failure, include the request, the error, and whether the likely fix is in the catalog (`braintrustdata/braintrust-proxy`), the Gateway or Lingua layer (`gateway/` or `lingua/` in `braintrustdata/braintrust`), or the provider.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T19:24:02.526723Z 237a6ae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 237a6ae838

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".

Comment thread packages/proxy/schema/model_list.json Resolved
> 🤖 **This text was AI-generated.**

The Qwen Max family already ships on Together (`Qwen/Qwen3.7-Max`), so the
add-model workflow expects a Together companion for Qwen4 Max. Without it,
orgs that only have a Together key cannot route
`accounts/fireworks/models/qwen4-max`.

Together lists `Qwen/Qwen4-Max` on Serverless
(https://www.together.ai/models/qwen4-max). This adds that entry, maps it to
`together`, and adds it to the Fireworks entry's `fallback_models`.

Prices are $1.50 input / $4.50 output per million tokens from
https://www.together.ai/pricing. The cached-input rate is left out because
Together's pages list three different values ($0.075, $0.0525, $0.07125).
`reasoning`, `multimodal` and the 1M context come from the model page
("Deep thinking is enabled by default", "Supports text and image input across
a 1M-token context window").

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 4e4d507 into main Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant