https://github.com/turingai-team/turing-library
A collection of libraries for different languages to interact with TuringAPI
https://github.com/turingai-team/turing-library
Last synced: 9 months ago
JSON representation
A collection of libraries for different languages to interact with TuringAPI
- Host: GitHub
- URL: https://github.com/turingai-team/turing-library
- Owner: TuringAI-Team
- License: apache-2.0
- Archived: true
- Created: 2023-07-18T12:54:10.000Z (almost 3 years ago)
- Default Branch: typescript
- Last Pushed: 2024-03-02T14:42:59.000Z (over 2 years ago)
- Last Synced: 2024-09-27T04:21:57.100Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://docs.turing.sh
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# turing.sh



The official library to interact with TuringAPI using javascript or typescript.
Check our docs at [docs.turing.sh](https://docs.turing.sh)
# How to get an API key
Go to our [discord server](https://discord.gg/turing), then go to the [applications channel](https://discord.com/channels/899761438996963349/1129712544580374571) where you can apply for an API key. Please take the applications seriously, we will not accept applications that are not serious.
## Installation
```bash
npm install turing.sh
```
## Usage
```typescript
import { Text, Image, Audio } from "turing.sh";
const text = new Text({
apiKey: "YOUR_API_KEY",
captchaKey: "YOUR_CAPTCHA_KEY",
});
const gptAnswer = await text.gpt({
messages: [
{
role: "user",
content: "Hello, how are you?",
},
],
});
```