本文へ移動
cccskills
無料GitHub で公開

fireworks-inference

Run inference on Fireworks AI — direct, through the Leanmcp AI Gateway proxy (aigateway.leanmcp.com) for observability, or via LiteLLM / the OpenAI SDK / raw HTTP. Covers the endpoint-and-key matrix for each route, serverless vs dedicated deployments and their cold starts, browsing and filtering the model catalogue, reasoning models that return content:null with the answer in reasoning_content, function calling, concurrency and load testing, and runner scripts where many models share one protocol with a --use-proxy toggle. Use this skill whenever the user mentions Fireworks, FIREWORKS_API_KEY, api.fireworks.ai, fireworks_ai/ model ids, accounts/fireworks/models/..., a Fireworks deployment id, the Leanmcp gateway or LEANMCP_API_KEY, app.leanmcp.com observability, or gpt-oss / kimi / glm / qwen / deepseek served on Fireworks; wants to route LLM calls through a proxy for logging or cost tracking; is debugging empty responses, 404s, scope errors, cold starts, or "the gateway isn't working"; wants to pick a Fireworks model with tool calling; or wants to sweep several models over one benchmark. Reach for it even on vague asks like "why is this model returning nothing" or "set up inference for these models" when Fireworks is in play.

インストール方法を見る

含まれるファイル(14)

  • SKILL.md7.7 KB
  • assets/run_fireworks.sh6.3 KB
  • references/gateway.md5.0 KB
  • references/load-and-concurrency.md4.6 KB
  • references/models.md5.6 KB
  • references/reasoning-models.md4.5 KB
  • references/reference-implementation.md4.5 KB
  • references/routes.md5.2 KB
  • references/runner-scripts.md5.3 KB
  • references/verification.md4.2 KB
  • scripts/fw_hammer.py11.4 KB
  • scripts/fw_models.py8.1 KB
  • scripts/fw_ready.py6.5 KB
  • scripts/fw_smoke.py12.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Fireworks inference

Inference on Fireworks is three independent choices, and nearly every confusing failure is one of them being wrong while you debug another:

   TRANSPORT                ROUTE                        MODEL
   ─────────                ─────                        ─────
   raw HTTP                 direct Fireworks             serverless
   openai SDK        ×      api.fireworks.ai        ×    accounts/fireworks/models/<slug>
   litellm                  Leanmcp gateway              dedicated deployment
                            aigateway.leanmcp.com        accounts/<acct>/deployments/<id>

This skill's job is to let you isolate them one at a time instead of guessing.

The route matrix — memorize this

base URLkey
direct Fireworkshttps://api.fireworks.ai/inference/v1FIREWORKS_API_KEY
Leanmcp gatewayhttps://aigateway.leanmcp.com/v1/fireworksLEANMCP_API_KEY

Same models, same request and response shape. Only the endpoint and the key change — which is why routing should be a flag, never a code path. Note the key swap: through the gateway you send your Leanmcp key; the gateway holds the Fireworks credential.

Gateway keys at https://app.leanmcp.com/api-keys (top up credits first at https://app.leanmcp.com/billing); every request then shows up at https://app.leanmcp.com/observability.

Start here

Something is broken. Climb the ladder in references/verification.md — each rung isolates one layer, so the first failure names the culprit.

python scripts/fw_smoke.py --model gpt-oss-20b            # raw + sdk + litellm, gateway
python scripts/fw_smoke.py --model gpt-oss-20b --direct   # same, direct

The model returns nothing. Almost always references/reasoning-models.md (the answer is in reasoning_content, or the budget went to reasoning) or a cold deployment (references/models.md).

Picking a model. references/models.md, then python scripts/fw_models.py --serverless --tools --sort context.

Setting up a route or a framework. references/routes.md for the transport quirks, references/gateway.md for the proxy specifics.

Building a sweep. references/runner-scripts.md

Working code at full scale. references/reference-implementation.md.

Scripts

scriptwhat
fw_smoke.pythe same request through raw HTTP, the openai SDK, and litellm, against either route — the first transport that fails names the layer
fw_models.pybrowse/filter the catalogue: serverless, tools, vision, context; emits paste-ready litellm ids or a models.txt
fw_ready.pyreadiness ping for cold deployments; also triggers the scale-up. Shell-friendly exit codes, --wait to block
fw_hammer.pyload test in three shapes (oneshot / conversation / output), streamed with a heartbeat, p50/p95 latency and failure breakdown

Model ids — three shapes, not interchangeable

accounts/fireworks/models/gpt-oss-20b            serverless, shared, always warm
accounts/<your-account>/deployments/<id>         dedicated, yours, scales to zero
fireworks_ai/<either of the above>               the litellm form

A bare slug is shorthand you expand yourself; nothing accepts it directly.

litellm: two things that look like the service is down

  1. The model id needs the fireworks_ai/ prefix so litellm picks the provider. Without it litellm guesses from the string, usually wrongly.
  2. litellm appends /chat/completions to api_base. Pass the base without that suffix.
litellm.completion(
    model="fireworks_ai/accounts/fireworks/models/gpt-oss-20b",
    messages=[...],
    api_base="https://aigateway.leanmcp.com/v1/fireworks",   # no /chat/completions
    api_key=os.environ["LEANMCP_API_KEY"],                    # Leanmcp, not Fireworks
)

litellm._turn_on_debug() prints the URL it actually hits — that one line settles most "the gateway is broken" arguments. (It also prints the API key, so treat such a log as a secret.)

Things that are true and easy to miss

content: null is not failure. Reasoning models put chain-of-thought in reasoning_content and may return no content at all — especially when the budget ran out mid-thought (finish_reason: "length"). Always read msg.content or msg.reasoning_content, and budget 4096, not 1024. A tool call with null content is also correct: the model acted instead of speaking.

Cold deployments return 200 with an empty body. A scale-to-zero deployment does not error while spinning up — downstream code dies on the None with TypeError: expected string or bytes-like object, got 'NoneType', which reads as a code bug. Warm it first with fw_ready.py --wait.

The gateway forwards with its credentials. Your private deployment is invisible to it unless the gateway is wired to your Fireworks account — expect a 404, which is configuration, not a bug. Confirm the deployment is alive with a direct call before blaming the gateway.

Tool support is per model, and the flag is a hint. --serverless --tools filters the catalogue, but some models report supportsTools: false and call tools fine. Probe with fw_smoke.py --tools.

Load reveals what a single call cannot. Missing scopes: model.request, rate limits, and under-replicated deployments all pass a smoke test and fail a sweep — unevenly across cells, which silently unbalances the comparison. Hammer at your intended concurrency before launching.

Turn client-side caching off for anything you measure. A cached response is not observed, not billed, and not a measurement.

Route every speaker the same way. Agent through the gateway and the simulated user direct gives you a dashboard showing half the traffic and a cost total that understates the run.

Related

  • research-observability — the gateway tells you what a run cost; a local per-turn trace tells you what the model said and why the episode failed. Use both; the adapters there take LiteLLM/OpenAI responses directly.
  • tinker-training-inference — for the Tinker platform (training and its own inference endpoints).

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Analyze tau2-bench task export files to identify exactly where and why tasks failed. Map failures to specific conversation rounds, show root causes, check whether relevant documentation was available, and cite sources. Use this skill whenever you need to debug a tau2-bench evaluation, understand why an agent made wrong decisions, identify missing knowledge, or review task performance—especially when context length, eligibility criteria, or policy compliance might be at fault.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

How to develop, modify, and extend the Claude Code codebase following its established programming style, patterns, and conventions. Use this skill whenever working on the claude-code source — adding tools, commands, utils, components, types, hooks, services, or fixing bugs. Also use when the user asks about claude-code architecture, coding standards, file organization, or wants to understand how the codebase works. This skill ensures all contributions match the existing codebase style exactly.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

Generate a complete, beginner-friendly explanation of an entire code repository as a set of markdown files. Maps the repo structure with `treecap` (installing it if missing), studies the actual source, then writes a `CODE_EXPLANATION/` folder containing an `OVERVIEW.md` plus numbered deep-dive files (01_architecture.md, 02_models.md, ...) that explain how the code is built, what it does, and how the pieces fit together — illustrated with real code excerpts. Use this skill whenever the user wants to understand, document, onboard onto, or get a walkthrough of a codebase: phrases like "explain this repo", "explain the code", "code explanation", "walk me through this codebase", "help me understand how this is built", "document the architecture", or "what does this project do" — even if they don't say the word "skill". Prefer this over ad-hoc summaries whenever the goal is a durable, written explanation of a whole repo.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

Build, run, debug and ship 3D city games in Godot 4 — procedurally generated cities (block grids, districts, weighted building typologies, MultiMesh batching, facade shaders, terrain, day/night, landmarks), first-person controllers, headless verification, Blender-generated .glb assets, rigged character and animation packs, real OpenStreetMap-derived cities, WebAssembly export, and cloud GPU streaming on GCP. Use this skill whenever the work involves Godot or a .gd/.tscn/.gdshader/project.godot file; whenever someone wants to start, set up, clone onto a new machine, or stand up a 3D game or city generator; whenever they mention procedural city, city generator, block grid, building typology, MultiMesh, facade shader, terrain heightmap, navmesh, Godot export templates, export presets, headless Godot, .glb pipeline, Blender asset generation, character rigs or borrowed animations; and whenever they want to deploy or share a game — web export, SharedArrayBuffer/COOP/COEP, Selkies, pixel streaming, GPU VM, or "let people play this without installing anything." Reach for it even on vague asks like "get this running", "why is my city slow", "my model faces backwards", "make it work on a cloud machine", or "set this up somewhere else too" when a Godot 3D project is in play.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

Scaffold a native iOS app (SwiftUI, no dependencies) from nothing, run it in the Simulator, and archive + upload it to TestFlight entirely from the command line. Bundles working scripts for icon generation, simulator run, and signed upload via the App Store Connect API. Use this whenever the user wants to build, run, ship, or debug an iOS/iPhone/iPad app, mentions Xcode, SwiftUI, .xcodeproj, xcodebuild, simctl, provisioning, code signing, App Store Connect, TestFlight, archiving, or "get this on my phone" — and also when an existing iOS build is failing on icons, signing, teams, destinations, or duplicate build numbers.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

Build MCP servers using the Leanmcp SDK with decorator-based TypeScript. Use this skill when users ask for "leanmcp", "MCP with decorators", "MCP with authentication", "MCP with elicitation", "MCP with environment injection", or want a simpler, more elegant way to build MCP servers. Leanmcp provides automatic schema generation, dependency injection, authentication, and user input collection.

日本語の概要は準備中です。原文の説明を表示しています。

Leanmcp/gateway-skills2,1122026年10月8日 更新

Leanmcp のスキルをすべて見る

このスキルの問題を報告する