https://github.com/oelin/deepai
A Node.js client for DeepAI's AI Chat (WIP).
https://github.com/oelin/deepai
Last synced: 3 months ago
JSON representation
A Node.js client for DeepAI's AI Chat (WIP).
- Host: GitHub
- URL: https://github.com/oelin/deepai
- Owner: oelin
- Created: 2023-11-20T10:46:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T10:53:02.000Z (over 1 year ago)
- Last Synced: 2023-11-20T11:45:17.598Z (over 1 year ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deepai
A Node.js client for DeepAI's AI Chat (WIP).
## Installation
```js
npm i deepai
```## Usage
The API is structured identically to OpenAI's chat completions API.
```js
import DeepAI from 'deepai'const client = DeepAI()
const completion = await client.chat.completions.create('gpt-3.5-turbo', [
{role: 'system', content: 'You are a friendly robot.'},
{role: 'user', cotnent: 'What is the capital of France?'},
])
```