Added the ai.generateSkybox() function as an easy way to interface Blockade Lab's API.
They will also be able to interface with Blockade Lab's API without having to manage their own API key.
ai.generateSkybox() accepts three parameters:
prompt - This is the prompt that tells the AI what the generated skybox should look like.
negativePrompt - Is optional and tells the AI what the generated skybox should not look like.
options - Is optional and are the options that should be used for the operation.
Returns a promise that resolves when the AI has generated the skybox. The resolved value will be a string containing the URL that the generated image is stored at.
See the documentation for more info.
(DevOps Only) To configure AI Chat features, use the following SERVER_CONFIG properties:
blockadeLabs - This should be an object with the following properties:
apiKey - The Blockade Labs API Key that should be used for requests.
ai - This should be an object with the following properties:
generateSkybox - Optional. If omitted, then AI Skybox features will be disabled. It should be an object with the following properties:
provider - Set this to "blockadeLabs". This tells the server to use Blockade Labs for ai.generateSkybox().
allowedSubscriptionTiers - The array of subscription tiers that enable ai.generateSkybox() for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to use ai.generateSkybox(). Set this to true to allow all users (even ones that are not subscribed).
:rocket: Improvements
ai.generateSkybox()
function as an easy way to interface Blockade Lab's API.ai.generateSkybox()
accepts three parameters:prompt
- This is the prompt that tells the AI what the generated skybox should look like.negativePrompt
- Is optional and tells the AI what the generated skybox should not look like.options
- Is optional and are the options that should be used for the operation.SERVER_CONFIG
properties:blockadeLabs
- This should be an object with the following properties:apiKey
- The Blockade Labs API Key that should be used for requests.ai
- This should be an object with the following properties:generateSkybox
- Optional. If omitted, then AI Skybox features will be disabled. It should be an object with the following properties:provider
- Set this to"blockadeLabs"
. This tells the server to use Blockade Labs forai.generateSkybox()
.allowedSubscriptionTiers
- The array of subscription tiers that enableai.generateSkybox()
for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to useai.generateSkybox()
. Set this totrue
to allow all users (even ones that are not subscribed).