https://github.com/evex-dev/blackbox-ai
https://github.com/evex-dev/blackbox-ai
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/evex-dev/blackbox-ai
- Owner: evex-dev
- License: mit
- Created: 2024-11-14T12:03:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-10T12:55:38.000Z (about 1 year ago)
- Last Synced: 2025-04-10T14:04:27.954Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://jsr.io/@evex/blackbox-ai
- Size: 37.1 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
}
```