Skip to content

evex-dev/blackbox-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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)
}