An open API service indexing awesome lists of open source software.

https://github.com/evex-dev/blackbox-ai


https://github.com/evex-dev/blackbox-ai

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# @evex/blackbox-ai

Blackbox.ai client for TypeScript.

## Install

The package is published via [jsr.io](https://jsr.io/@evex/blackbox-ai).

```shell
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

```ts
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)
}
```