Skip to content

Enable Fireworks Priority tier with live timing comparison - #56

Merged
devhims merged 2 commits into
mainfrom
feat/fireworks-priority-tier
Sep 18, 2026
Merged

devhims merged 2 commits into
mainfrom
feat/fireworks-priority-tier

Conversation

@devhims

@devhims devhims commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

Send all Fireworks agent inference requests with service_tier=priority to reduce overload rejection risk. Preserve existing model selection, reasoning settings, cache affinity, retries, and deadlines. Update model-cost accounting to published Priority prices and include the requested tier in model-attempt diagnostics. Workers AI settings and pricing remain unchanged.

The live comparison was run as a local experiment. Benchmark scripts and raw results are excluded from this PR; measured results are summarized below.

Live validation

Both production models accepted Priority requests. All 30 requests returned HTTP 200 and schema-valid responses, including all 15 Priority calls. The response did not echo the tier, so this establishes request acceptance rather than independent scheduling or billing confirmation.

Workload Standard median Priority median
GLM text 1.106 s 0.977 s
GLM, four synthetic images 2.241 s 1.258 s
DeepSeek finalizer 2.443 s 4.666 s

Five samples per tier and workload, alternating order, no retries. No timeout or overload occurred, so no reliability improvement was established. Two Standard vision responses failed an exact color-list check; those were not API failures. Synthetic images are simpler than production storyboards, output lengths varied, and the benchmark ran locally rather than in the Worker. Priority was faster for GLM in this sample and slower for DeepSeek. It is not a latency guarantee.

Checks

  • 595 local tests passed; 7 opt-in live router tests skipped.
  • TypeScript build passed.
  • SDK request-body tests verify service_tier, prompt-cache affinity, and Priority pricing.
  • git diff --check passed.

Not deployed. The configured GLM and DeepSeek models have a 25% Priority premium. The optional GPT-OSS profile has a 20% premium, reflected in accounting.

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
video2ctx-web Ready Ready Preview Sep 18, 2026 12:32pm UTC

@devhims
devhims merged commit 30dd162 into main Sep 18, 2026
6 checks passed
@devhims
devhims deleted the feat/fireworks-priority-tier branch September 18, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant