Skip to content

Release v3.0.0 OpenAI integration馃帀 馃帀

Pre-release
Pre-release

Choose a tag to compare

@tmizuma tmizuma released this 26 Feb 22:46
· 13 commits to main since this release

鈿★笍 Features and Enhancements
We're thrilled to announce our latest release, which brings powerful integration with OpenAI to our platform! 馃帀
This new feature will revolutionize the way you develop front-end applications by providing test data that closely mimics actual data, without the need to wait for back-end implementation to be completed.

Using our OpenAPI schema file in YAML format and an API key for OpenAI, you can easily generate appropriate test data from property names with just a few simple commands. After creating an output folder for your test data, use the following command to generate your data:

$ otdgen generate -i example-openapi.yaml -o output/ -ai true -api-key <Your API KEY>

The output data will include generated fields like address and hobby, created by OpenAI to closely resemble the actual data. Here's an example:

export const profile = {
	family_name: 'Smith', // generated by OpenAI!!
	age: 38, // random value between minimum and maximum
	address: '123 Main Street, Anytown, USA', // generated by OpenAI!!
	birthdate: '2002-07-23', // random value
	sex: 'MALE', // random value from enum definition
	hobby: ['Playing the guitar', 'Painting', 'Gardening'] // generated by OpenAI!!
};

Please refer to our README
NPM Package: https://www.npmjs.com/package/otdgen

We hope this new feature will be a game-changer for your development process, and we can't wait to see what you create with our platform's OpenAI integration!