Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BluGPT migration #1

Merged
merged 7 commits into from Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer.json
@@ -1,5 +1,5 @@
{
"name": "Azure Chat Solution Accelerator powered by Azure Open AI Service",
"name": "BluGPT",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye",

Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/azure-dev-validate.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,38 @@
name: CI

on:
push:
tags: ["*.*.*"]
pull_request:
branches: [main]
paths-ignore: ["*.md"]
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: asimmon/blugpt

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker build
uses: docker/build-push-action@v4
with:
context: src
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
93 changes: 0 additions & 93 deletions .github/workflows/open-ai-app.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -33,3 +33,7 @@ next-env.d.ts

.azure/
infra/aad_setup.sh

# custom
.idea/
.vscode/
32 changes: 0 additions & 32 deletions CONTRIBUTING.md

This file was deleted.

86 changes: 6 additions & 80 deletions README.md
@@ -1,84 +1,10 @@
# Unleash the Power of Azure Open AI
# BluGPT, a private and secure ChatGPT clone

1. [Introduction](#introduction)
1. [Solution Overview](/docs/1-introduction.md)
1. [Deploy to Azure](#deploy-to-azure)
1. [Run from your local machine](/docs/3-run-locally.md)
1. [Deploy to Azure with GitHub Actions](/docs/4-deploy-to-azure.md)
1. [Add identity provider](/docs/5-add-identity.md)
1. [Chatting with your file](/docs/6-chat-over-file.md)
1. [Environment variables](/docs/7-environment-variables.md)
> This is a fork of [microsoft/azurechat](https://github.com/microsoft/azurechat). You can find the original README file with instructions there.
**BluGPT** is a ChatGPT clone named after my cat, Blu 😻. I've slightly modified the original Microsoft project so I could host my own "ChatGPT" and share it with my family and friends.

# Introduction
While the original Microsoft repository might seem to enforce the use of [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/openai-service), it was actually quite simple to replace it with the [OpenAI API](https://platform.openai.com/overview). I've also replaced the GitHub and Azure AD authentication with Google, which makes it easier for my family to log in.

_Azure Chat Solution Accelerator powered by Azure Open AI Service_
![](/images/blugpt1.png)

![](/images/intro.png)

_Azure Chat Solution Accelerator powered by Azure Open AI Service_ is a solution accelerator that allows organisations to deploy a private chat tenant in their Azure Subscription, with a familiar user experience and the added capabilities of chatting over your data and files.

Benefits are:

1. Private: Deployed in your Azure tenancy, allowing you to isolate it to your Azure tenant.

2. Controlled: Network traffic can be fully isolated to your network and other enterprise grade authentication security features are built in.

3. Value: Deliver added business value with your own internal data sources (plug and play) or integrate with your internal services (e.g., ServiceNow, etc).

# Deploy to Azure

You can provision Azure resources for the solution accelerator using either the Azure Developer CLI or the Deploy to Azure button below. Regardless of the method you chose you will still need set up an [identity provider and specify an admin user](./5-add-identity.md)

## Deployment Options

You can deploy the application using one of the following options:

- [1. Azure Developer CLI](#azure-developer-cli)
- [2. Azure Portal Deployment](#azure-portal-deployment)

### 1. Azure Developer CLI

> **Important**
> This section will create Azure resources and deploy the solution from your local environment using the Azure Developer CLI. Note that you do not need to clone this repo to complete these steps.

1. Download the [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/overview)
1. Run `azd init -t microsoft/azurechat`
1. Run `azd up` to provision and deploy the application

### 2. Azure Portal Deployment

> **Warning**
> This button will only create Azure resources. You will still need to deploy the application by following the [deploy to Azure section](./4-deploy-to-azure.md) to build and deploy the application using GitHub actions.

Click on the Deploy to Azure button to deploy the Azure resources for the application.

[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://aka.ms/anzappazurechatgpt)

## Setup Authentication

> **Important**
> The application is protected by an identity provider and follow the steps in [Add an identity provider](./5-add-identity.md) section for adding authentication to your app.

[Next](./docs/1-introduction.md)

# Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

# Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
![](/images/blugpt2.png)
41 changes: 0 additions & 41 deletions SECURITY.md

This file was deleted.

10 changes: 0 additions & 10 deletions SUPPORT.md

This file was deleted.

20 changes: 0 additions & 20 deletions azure.yaml

This file was deleted.