@webgpt/sdk
Advanced tools
Comparing version 0.9.0 to 0.10.0
{ | ||
"name": "@webgpt/sdk", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -7,2 +7,4 @@ # ⏣ WebGPT SDK | ||
First, install the package: | ||
```bash | ||
@@ -14,7 +16,26 @@ | ||
See usage examples in the [/samples](./samples) directory. | ||
Then, you can use the SDK in your code: | ||
```typescript | ||
import { WebgptSdk } from '@webgpt/sdk'; | ||
const webgpt = new WebgptSdk({ | ||
apiKey: 'YOUR_API_KEY', | ||
}); | ||
const task = webgpt.makeAssignment({ | ||
idea: `Crocodile zoo` | ||
language: `en`, | ||
}); | ||
const { assignment } = await task.asPromise(); | ||
console.info(`Assignment:`, '\n', assignment); | ||
``` | ||
See more usage examples in the [/samples](./samples) directory. | ||
## Access | ||
!!! | ||
This is internal SDK for our partners. | ||
If you are interested in using it, please contact us at [pavol@webgpt.cz](https://www.pavolhejny.com/contact). |
58673
40