Installation and Setup
Running through Docker
A simple way to initiate self-hosted TaskingAI-Inference service is through Docker.
Prerequisites
- Docker and Docker Compose installed on your machine.
- Git installed for cloning the repository.
- Curl or other HTTP client installed for testing and debugging.
First, pull the latest Docker image taskingai/taskingai-plugin:latest
from Docker Hub (or the appropriate registry) by executing the following command in your terminal:
docker pull taskingai/taskingai-plugin:latest
Then, you can run a new container using the following command:
docker run -d -p 8030:8030 taskingai/taskingai-plugin:latest
Your TaskingAI-Inference is now running on http://localhost:8030 🚀
Usage
Once deployed, use tools like Postman, cURL, or any HTTP client that allows you to send requests to your local TaskingAI-Plugin service for testing and debugging.
Here's an example of requesting CoinMarketCap API to get the latest Bitcoin price:
curl --location 'http://127.0.0.1:8030/v1/execute' \
--header 'Content-Type: application/json' \
--data '{
"bundle_id": "coin_market_cap",
"plugin_id": "get_latest_coin_data",
"input_params": {
"symbol": "BTC"
},
"credentials": {
"COIN_MARKET_CAP_API_KEY":"YOUR_COIN_MARKET_CAP_API_KEY"
}
}'