Step 3 - Add AI Model and chat with your app
Last updated
Last updated
An OpenAI API Platform account is required is required to obtain an API key and connect to the OpenAI models API.
Navigate to Code tab.
In Components sidebar, click Model Providers tab, and select OpenAI.
Enter the Model name.
Enter the Model ID, (e.g. gpt-4o
).
Set the OpenAI API Key secret. The API key will be securely stored and encrypted to ensure your data's safety and privacy.
Add tools: auto
in the model params to enable the model to access the loaded datasets and enhance its responses. Learn more about models and available tools.
The final Spicepod configuration should look like this:
Click Save in the code toolbar and then Deploy in the bottom popup to apply the changes.
Navigate to Playground and select AI Chat in the sidebar, to chat with deployed model.
Now you can ask about your data in the chat.
Replace [API-KEY]
in the sample below with your API Key. Learn more about App API Keys.
Raise issues or feedback with our team on Discord.