Get started with compextAI is super easy!
Header over to https://compextai.dev/signup and register a new account.
Once logged in, create a new project.
Select your newly created project to go to the project dashboard.
From the sidebar, head over to the Profile Settings
session.
Here, you can find your compextAI API Token
. You can also update your AI provider’s secret keys here. This will allow compextAI to make calls to your provider on your behalf by acting as a proxy.
Now go back to the project dashboard and create your first template. You can define all the model parameters in a template and then we can use these templates to create Prompt Configs
which we can directly use in our code.
Use this template to create a Prompt Config
All set, now we are good to go!
You can run this python script on your local computer:
pip install compextAI
# first update the api_key value in the script or set an env variable API_KEY
python3 my_first_compext_script.py
# Hello, hello, my dear friend!
# A friendly greeting I now send.
# How are you on this fine day?
# I hope you're well in every way!
Now let’s update the system prompt in the template 😲
Executing the script again, we get:
# नमस्ते कहूँ मैं हर्ष से,
# आपका स्वागत है मेरे पास बड़े प्यार से।
Hence, we can update the model parameters on the fly, without changing and re-deploying the code!