This repo contains a python app that exposes an API for autosuggesting CLI commands using Langframe LLM integrations.
- Clone the repository into your local machine
- Open the repository in your favourite editor
- Install the required dependencies by running listed in
requirements.txt
by runningpip install -r requirements.txt
. - Create a
.env
file and add the required credentials and secrets there like AZURE_OPENAI_ENDPOINT, OPENAI_API_VERSION etc - Run the app :
uvicorn main:app --reload
- Access the Autosuggestion api, sample curl:
curl --location --request POST 'http://localhost:8000/suggestaiocommand' \ --header 'accept: application/json' \ --header 'Content-Type: application/json' \ --data-raw '{ "input_str": "deploy app" }'
Contributions to this repository are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.