Package Exports
- @webgpt/sdk
- @webgpt/sdk/dist/esm/index.es.js
- @webgpt/sdk/dist/umd/index.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@webgpt/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⏣ WebGPT SDK
WebGPT SDK is a TypeScript / JavaScript library for interacting with the WebGPT API.
Usage
First, install the package:
npm i @webgpt/sdk
Then, you can use the SDK in your code:
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 directory.
Access
This is internal SDK for our partners. If you are interested in using it, please contact us at pavol@webgpt.cz.