Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 635 Bytes

File metadata and controls

31 lines (23 loc) · 635 Bytes

@evex/blackbox-ai

Blackbox.ai client for TypeScript.

Install

The package is published via jsr.io.

deno add jsr:@evex/blackbox-ai # Deno
bunx jsr add --bun @evex/blackbox-ai # Bun
pnpm dlx jsr add --pnpm @evex/blackbox-ai # pnpm
yarn dlx jsr add --yarn @evex/blackbox-ai # Yarn
npx jsr add @evex/blackbox-ai # npm

Usage

import { streamText } from 'ai'
import { blackbox } from '@evex/blackbox-ai'

const stream = streamText({
  model: blackbox('deepseek-v3'),
  prompt: 'Hi, who are you',
}).textStream

for await (const chunk of stream) {
  console.log(chunk)
}