Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fireworks-ai

БесплатноБез исполняемых скриптовНе проверен

Fireworks AI runs open-weight LLMs (Kimi, GLM, DeepSeek, Qwen, gpt-oss and others) through an OpenAI-compatible serverless API and dedicated deployments. Use…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Fireworks AI — Fast Open-Source Model Inference

Overview

Fireworks AI serves open-weight models behind an OpenAI-compatible API at https://api.fireworks.ai/inference/v1. Serverless is billed per token and needs no setup; dedicated deployments give you GPUs for consistent latency or for your own fine-tuned models. The catalog turns over quickly (Fireworks gives at least two weeks of notice before removing a serverless model), so pick model IDs from the current "Which model should I use?" guide and the Model Library, never from an old tutorial.

Instructions

Setup

Create a key in the Fireworks dashboard, then export it. Any OpenAI SDK works with a different base URL; Fireworks also ships its own SDK (alpha, needs --pre) and an Anthropic-compatible endpoint at https://api.fireworks.ai/inference.

export FIREWORKS_API_KEY="$(pass show fireworks/api-key)"   # key created at https://app.fireworks.ai/settings/users/api-keys
npm install openai          # or: pip install openai
pip install --pre fireworks-ai   # optional native SDK: from fireworks import Fireworks

Model IDs have the form accounts/fireworks/models/<slug>. Slugs named in the current docs include glm-5p3-flash (quickstart), glm-5p3, kimi-k3, deepseek-v4p1-flash-1017, minimax-m3, qwen3p7-plus, gpt-oss-120b and qwen3-8b (small and cheap). Older slugs such as llama-v3p3-70b-instruct, firefunction-v2 or mixtral-8x22b-instruct are not in the current guides: check the Model Library before relying on them.

Chat Completions and Streaming

// src/llm/fireworks.ts
import OpenAI from "openai";

const fireworks = new OpenAI({
  apiKey: process.env.FIREWORKS_API_KEY!,
  baseURL: "https://api.fireworks.ai/inference/v1",
});

const MODEL = "accounts/fireworks/models/glm-5p3-flash";

async function chat(prompt: string, model = MODEL) {
  const response = await fireworks.chat.completions.create({
    model,
    messages: [
      { role: "system", content: "You answer questions about our shipping policy in two sentences." },
      { role: "user", content: prompt },
    ],
    temperature: 0.7,
    max_tokens: 1024,
  });
  return response.choices[0].message.content;
}

async function streamChat(prompt: string, onChunk: (text: string) => void) {
  const stream = await fireworks.chat.completions.create({
    model: MODEL,
    messages: [{ role: "user", content: prompt }],
    stream: true,
  });
  let full = "";
  for await (const chunk of stream) {
    const text = chunk.choices[0]?.delta?.content ?? "";
    full += text;
    onChunk(text);
  }
  return full;
}

Structured Output

json_schema is the recommended mode; json_object forces any valid JSON. In both cases also tell the model in the prompt to answer in JSON, or it may emit whitespace until the token limit. If finish_reason is length the JSON is truncated, so raise max_tokens.

async function analyzeReview(text: string) {
  const response = await fireworks.chat.completions.create({
    model: "accounts/fireworks/models/deepseek-v4p1-flash-1017",
    messages: [
      { role: "system", content: "Classify the review. Reply in JSON with sentiment, confidence and keywords." },
      { role: "user", content: text },
    ],
    response_format: {
      type: "json_schema",
      json_schema: {
        name: "ReviewAnalysis",
        schema: {
          type: "object",
          properties: {
            sentiment: { type: "string", enum: ["positive", "negative", "neutral"] },
            confidence: { type: "number" },
            keywords: { type: "array", items: { type: "string" } },
          },
          required: ["sentiment", "confidence", "keywords"],
        },
      },
    },
    temperature: 0,
    max_tokens: 512,
  });
  return JSON.parse(response.choices[0].message.content!);
}

Supported schema keywords include properties, required, enum, anyOf/allOf/oneOf, pattern (best effort), length and size limits, and in-document $ref/$defs. External $ref URIs are not supported. Custom BNF grammars are available as a second mode (see the Structured Outputs docs).

Tool Calling

Standard OpenAI tools format. Use a low temperature (0.0 to 0.3) to reduce invented parameter values.

async function findProducts(prompt: string) {
  const response = await fireworks.chat.completions.create({
    model: "accounts/fireworks/models/kimi-k3",
    messages: [{ role: "user", content: prompt }],
    tools: [
      {
        type: "function",
        function: {
          name: "search_database",
          description: "Search the product database",
          parameters: {
            type: "object",
            properties: {
              query: { type: "string" },
              category: { type: "string", enum: ["electronics", "clothing", "books"] },
              max_price: { type: "number" },
            },
            required: ["query"],
          },
        },
      },
Полный SKILL.md на GitHub

Установить fireworks-ai в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл fireworks-ai?

Fireworks AI runs open-weight LLMs (Kimi, GLM, DeepSeek, Qwen, gpt-oss and others) through an OpenAI-compatible serverless API and dedicated deployments. Use when integrating Fireworks inference, streaming chat, tool calling, JSON-schema structured output, prompt caching, batch inference, or fine-tuning a model with firectl and serving the result.

Как установить скилл fireworks-ai?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fireworks-ai запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить fireworks-ai с