{"_id":"@ai-toolkit/fireworks","name":"@ai-toolkit/fireworks","dist-tags":{"latest":"0.1.14"},"versions":{"0.1.14":{"name":"@ai-toolkit/fireworks","version":"0.1.14","license":"Apache-2.0","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"dependencies":{"@ai-toolkit/openai-compatible":"0.1.13","@ai-toolkit/provider":"1.0.10","@ai-toolkit/provider-utils":"2.1.11"},"devDependencies":{"@types/node":"^18","tsup":"^8","typescript":"5.6.3","zod":"3.23.8","@khulnasoft/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.0.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"homepage":"https://sdk.khulnasoft.com/docs","repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"keywords":["ai-toolkit"],"scripts":{"build":"tsup","build:watch":"tsup --watch","clean":"rm -rf dist","lint":"eslint \"./**/*.ts*\"","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run"},"_id":"@ai-toolkit/fireworks@0.1.14","description":"The **[Fireworks provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/fireworks)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model and image model support for the [Fireworks](https://fireworks.ai) platform.","_integrity":"sha512-IogidQHttlSoUrntXE7rmC3kd6Y8xkf8xcPbe7LmKnCH3agOyj/7j8LV0oVpbmkD6kX48YkEGcV30UFlZlOefA==","_resolved":"/tmp/77ec797f421271bb16d94db426b1b56e/ai-toolkit-fireworks-0.1.14.tgz","_from":"file:ai-toolkit-fireworks-0.1.14.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-IogidQHttlSoUrntXE7rmC3kd6Y8xkf8xcPbe7LmKnCH3agOyj/7j8LV0oVpbmkD6kX48YkEGcV30UFlZlOefA==","shasum":"63208eaa97f790aef7ca276d486891b6598a6aac","tarball":"https://registry.npmjs.org/@ai-toolkit/fireworks/-/fireworks-0.1.14.tgz","fileCount":9,"unpackedSize":52806,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIyT864reZIDhammyAIKPRDArKYOOBN5ptybgusLGhZQIgH6aql+7lv/rIXqdppYyVb1l//S2u/Eqt9ztnT16L8Sk="}]},"_npmUser":{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"},"directories":{},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fireworks_0.1.14_1741546707532_0.9103162989205076"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T18:58:27.478Z","0.1.14":"2025-03-09T18:58:27.697Z","modified":"2025-03-09T18:58:27.910Z"},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"description":"The **[Fireworks provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/fireworks)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model and image model support for the [Fireworks](https://fireworks.ai) platform.","homepage":"https://sdk.khulnasoft.com/docs","keywords":["ai-toolkit"],"repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"license":"Apache-2.0","readme":"# AI TOOLKIT - Fireworks Provider\n\nThe **[Fireworks provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/fireworks)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model and image model support for the [Fireworks](https://fireworks.ai) platform.\n\n## Setup\n\nThe Fireworks provider is available in the `@ai-toolkit/fireworks` module. You can install it with\n\n```bash\nnpm i @ai-toolkit/fireworks\n```\n\n## Provider Instance\n\nYou can import the default provider instance `fireworks` from `@ai-toolkit/fireworks`:\n\n```ts\nimport { fireworks } from '@ai-toolkit/fireworks';\n```\n\n## Language Model Example\n\n```ts\nimport { fireworks } from '@ai-toolkit/fireworks';\nimport { generateText } from 'ai-toolkit';\n\nconst { text } = await generateText({\n  model: fireworks('accounts/fireworks/models/deepseek-v3'),\n  prompt: 'Write a JavaScript function that sorts a list:',\n});\n```\n\n## Image Model Examples\n\n```ts\nimport { fireworks } from '@ai-toolkit/fireworks';\nimport { experimental_generateImage as generateImage } from 'ai-toolkit';\nimport fs from 'fs';\n\nconst { image } = await generateImage({\n  model: fireworks.image('accounts/fireworks/models/flux-1-dev-fp8'),\n  prompt: 'A serene mountain landscape at sunset',\n});\nconst filename = `image-${Date.now()}.png`;\nfs.writeFileSync(filename, image.uint8Array);\nconsole.log(`Image saved to ${filename}`);\n```\n\n## Documentation\n\nPlease check out the **[Fireworks provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/fireworks)** for more information.\n","readmeFilename":"README.md","_rev":"1-05cb2963a4d3963cf7324dca90c59c84"}