docs/versioned_docs/version-3.0.0-LTS/marketplace/plugins/openai.md
ToolJet integrates with OpenAI to utilize its AI capabilities. This integration enables ToolJet to generate text based on user prompts, facilitate chat interactions, create images tailored to specific inputs, and generate vector embeddings.
:::note Before following this guide, it is assumed that you have already completed the process of Using Marketplace plugins. :::
For connecting to OpenAI, the following credentials are required:
<div style={{textAlign: 'center'}}> </div>The function of this operation is to examine the user's input and generate a suitable response that simulates human-like conversation.
Model: GPT-4 Turbo
Prompt: What are the key principles of machine learning?
Max Tokens: 100
Temperature: 0.7
Stop sequence: END
Suffix: \n
"Machine learning, a subset of artificial intelligence, is fundamentally about designing and implementing algorithms that can learn from and make predictions or decisions based on data. The key principles of machine learning can be outlined as follows:nn1. **Learning from Data**: At its core, machine learning involves developing algorithms that can learn from and make predictions or inferences from data. Models are trained using a large set of data known as training data, which helps them make decisions or predictions without being explicitly programmed for the task.nn2"
The purpose of this operation is to generate text completions based on a given prompt.
Model: GPT-3.5 Turbo
Prompt: The benefits of using low code platforms for software development include
Max Tokens: 100
Temperature: 0.6
Stop sequence: END
Suffix: \n
":1. Increased Speed and Efficiency: Low code platforms allow developers to quickly build and deploy applications without having to write extensive lines of code. This significantly reduces development time and increases efficiency.nn2. Cost Savings: With low code platforms, businesses can save on development costs by reducing the need for a large team of developers. This also leads to lower maintenance costs as the applications are easier to maintain and update.nn3. User-Friendly Interface: Low code platforms are designed to be user-friendly and require minimal"
This operation generates AI images based on the given prompt.
256x256, 512x512, or 1024x1024.1024x1024, 1792x1024, or 1024x1792.Model: DALL-E 3
Prompt: A futuristic cityscape with flying cars and holographic billboards at sunset
Size(in pixels): 1024x1024
{
"status": "success",
"message": "Image generated successfully",
"data": {
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-CpkCwFjT48kGZ33uOV2L4QxH/user-3QrXKnZO1PJUBeNP6xiQV9Rs/img-XXIds2QvTdcUfcJ2qmNWLwsC.png?st=2024-10-09T10%3A24%3A34Z&se=2024-10-09T12%3A24%3A34Z&sp=r&sv=2024-08-04&sr=b&rscd=inline&rsct=image/png&skoid=d505667d-d6c1-4a0a-bac7-5c84a87759f8&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-10-09T03%3A29%3A32Z&ske=2024-10-10T03%3A29%3A32Z&sks=b&skv=2024-08-04&sig=qPBYkPdQjLwBWJAS8fWmhs3B5TNSYbxhuMe15NcmgM4%3D"
}
}
This operation is used to generate vector embeddings from the given text, which can be used to build AI applications.
Model: The model to use for generating the vector embedding. The available models are:
Input: The text input used for generating the vector embedding.
Model: text-embedding-3-large
Input: ToolJet is a low code platform used to build internal tools
Encoding format: Float
Dimensions: 10
{
"embedding": [
-0.49750686,
-0.7019393,
-0.23043627,
-0.12421317,
-0.076866604,
0.2191516,
0.2548046,
0.1453106,
-0.20050736,
0.10516006
]
}