-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Trigger auto deployment for jarvis-reloaded | ||
|
||
# When this action will be executed | ||
on: | ||
# Automatically trigger it when detected changes in repo | ||
push: | ||
branches: | ||
[ main ] | ||
paths: | ||
- '**' | ||
- '.github/workflows/jarvis-reloaded-AutoDeployTrigger-12a0dcc3-c25a-4622-8d8b-808b2c03e488.yml' | ||
|
||
# Allow manual trigger | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write #This is required for requesting the OIDC JWT Token | ||
|
||
steps: | ||
- name: Checkout to the branch | ||
uses: actions/checkout@v2 | ||
|
||
- name: Azure Login | ||
uses: azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.JARVISRELOADED_AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.JARVISRELOADED_AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.JARVISRELOADED_AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Build and push container image to registry | ||
uses: azure/container-apps-deploy-action@v2 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
registryUrl: ${{ env.REGISTRY }} | ||
registryUsername: ${{ github.actor }} | ||
registryPassword: ${{ secrets.GITHUB_TOKEN }} | ||
containerAppName: jarvis-reloaded | ||
resourceGroup: jarvis-rg | ||
imageToBuild: yusufk.azurecr.io/jarvis-reloaded:${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
Jarvis POC/Demo Telegram bot | ||
=========================== | ||
This is a simple Telegram bot that can be used to demonstrate the capabilities of the Jarvis POC/Demo. | ||
It is based on the [python-telegram-bot](http://python-telegram-bot.org/) library. | ||
This Telegram bot is my personal AI Assistant, primarily built to explore LLM's and how they can be used to enable AI assistants. | ||
|
||
There are multiple branches with different experiments, using various LLM models. The most interesting are the ones where I've attempted to give the AI assistant the ability to have an internal conversation and develop it's own train of thought. My personal view is that this is an important component of conciousness. | ||
|
||
It is based on the [python-telegram-bot](http://python-telegram-bot.org/) library and is currently deployed on Azure using Azure Container App. | ||
|
||
Installation | ||
------------ | ||
To install the bot, you need to have Python 3.6 or higher installed on your system. | ||
Then, you can install the required dependencies using poetry: | ||
poetry install | ||
`poetry install` | ||
|
||
Usage | ||
----- | ||
To run the bot, you need to create a Telegram bot using the [BotFather](https://t.me/botfather). | ||
Then, you need to create a file called `.env` in the root of the project directory. | ||
|
||
reloaded | ||
Store environment variables in `.env` in the root of the project directory. |