Skip to content

Hiro/release #39

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

Draft
wants to merge 119 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
6041f02
Update README.md
codypharm Jun 23, 2023
6c425c4
base frontend app created
codypharm Jun 23, 2023
4decba0
ui developed
codypharm Jun 23, 2023
5883628
Create node.js.yml
Nasfame Jun 24, 2023
63050c3
Create FUNDING.yml
Nasfame Jun 24, 2023
2492bb8
refactor:
Nasfame Jun 24, 2023
cef8e86
experiment:create path resolutions
Nasfame Jun 24, 2023
6cc2737
experiment: @component
Nasfame Jun 24, 2023
7253f2d
ci: yarn
Nasfame Jun 24, 2023
9539516
fix: json
Nasfame Jun 24, 2023
f58179b
fix: ci
Nasfame Jun 24, 2023
f83cee9
revert: @components
Nasfame Jun 24, 2023
df6e2f3
configure: vite build
Nasfame Jun 24, 2023
2f6c8ed
ci:deploy react
Nasfame Jun 24, 2023
2c0e3d7
add: package-lock.json
Nasfame Jun 24, 2023
ad14662
ci:
Nasfame Jun 24, 2023
6d9eb4f
empty
Nasfame Jun 24, 2023
95d357d
deploy:
Nasfame Jun 24, 2023
6a3ddd7
deploy:
Nasfame Jun 24, 2023
c8906cc
ci: set permissions
Nasfame Jun 24, 2023
f187f88
Merge pull request #1 from aichats/hiro/refactor
codypharm Jun 24, 2023
7fb306f
refactorring done
codypharm Jun 24, 2023
d916509
refactor done
codypharm Jun 24, 2023
998438e
ignore: node_modules
Nasfame Jun 25, 2023
dd098fd
ci: update to yarn
Nasfame Jun 25, 2023
2448521
fix: ci for prev changes
Nasfame Jun 25, 2023
b46dea0
Revert "fix: ci for prev changes"
Nasfame Jun 25, 2023
50655a9
Revert "ci: update to yarn"
Nasfame Jun 25, 2023
e7f19e4
ci: updates
Nasfame Jun 25, 2023
a0d526c
ci: fixes
Nasfame Jun 25, 2023
4269fa3
basic upload done
codypharm Jun 25, 2023
d98413e
Merge branch 'main' of https://github.com/aichats/AI-Chats
codypharm Jun 25, 2023
d478b2e
refactored
codypharm Jun 25, 2023
1a0da57
ts config edited to allow warnings
codypharm Jun 25, 2023
e8af5d5
file error with authstore resolved
codypharm Jun 25, 2023
d947788
Merge pull request #3 from aichats/dev-william
codypharm Jun 25, 2023
0082008
chat list added , favicon updated
codypharm Jun 25, 2023
e7f5f8e
loading signs added
codypharm Jun 25, 2023
f7991dd
Merge pull request #4 from aichats/dev-william
codypharm Jun 25, 2023
04c87af
private changed to false
codypharm Jun 25, 2023
27412a7
Merge pull request #6 from aichats/dev-william
codypharm Jun 25, 2023
41869cb
Update README.md
Nasfame Jun 25, 2023
505e42a
Merge pull request #7 from aichats/Nasfame-patch-1
Nasfame Jun 25, 2023
bc25c8a
Update deploy.yml
Nasfame Jun 25, 2023
63b6f13
fix: ci
Nasfame Jun 25, 2023
8b1efba
request length considered
codypharm Jun 25, 2023
788c70b
lint:ci
Nasfame Jun 25, 2023
da96979
index.css import removed
codypharm Jun 25, 2023
6d1a25a
Merge pull request #8 from aichats/Nasfame-patch-2
codypharm Jun 25, 2023
f520afb
Merge pull request #9 from aichats/dev-william
codypharm Jun 25, 2023
7b7d61e
index.css added
codypharm Jun 25, 2023
75512dd
Merge pull request #10 from aichats/dev-william
codypharm Jun 25, 2023
cf87f10
out error attended
codypharm Jun 25, 2023
a3ca85c
Merge pull request #11 from aichats/dev-william
codypharm Jun 25, 2023
e6c5b2c
loading sign adjusted
codypharm Jun 25, 2023
ea476a8
loading sign adjusted
codypharm Jun 25, 2023
4de3bca
Merge pull request #12 from aichats/dev-william
codypharm Jun 25, 2023
7aae557
Update README.md
Nasfame Jun 25, 2023
633d71d
tested
codypharm Jun 25, 2023
cac17f5
Merge pull request #14 from aichats/dev-william
codypharm Jun 25, 2023
5b43a08
Update deploy.yml
Nasfame Jun 26, 2023
03d6ff6
Merge pull request #13 from aichats/Nasfame-patch-3
Nasfame Jun 26, 2023
b0a19ab
Merge pull request #15 from aichats/Nasfame-patch-4
Nasfame Jun 26, 2023
33d6bc1
Update deploy.yml
Nasfame Jun 26, 2023
a1d5b50
Merge pull request #16 from aichats/Nasfame-patch-3
Nasfame Jun 26, 2023
58ed033
doc:.env.example
Nasfame Jun 26, 2023
e684563
deplyo: surge
Nasfame Jun 26, 2023
edf3906
fix: redirects
Nasfame Jun 26, 2023
30461d8
deployed:; surge
Nasfame Jun 26, 2023
3f6548e
actions: deploy
Nasfame Jun 26, 2023
0487e95
Merge pull request #17 from aichats/hiro/release
Nasfame Jun 26, 2023
d63c502
fix: workflow
Nasfame Jun 26, 2023
84c8c41
doc: pretty
Nasfame Jun 26, 2023
e9470e3
doc: pretty
Nasfame Jun 26, 2023
cd9a34c
doc: pretty
Nasfame Jun 26, 2023
b3a4c51
final: doc
Nasfame Jun 26, 2023
b8525eb
http: donggrade
Nasfame Jun 26, 2023
367b8c4
ci: --include=dev
Nasfame Jun 26, 2023
c6c4c7b
check: write permission
Nasfame Jun 26, 2023
8adb519
Merge pull request #18 from aichats/hiro/release
Nasfame Jun 26, 2023
7c931c8
revert: deploy
Nasfame Jun 26, 2023
b1f79e5
deps:
Nasfame Jun 26, 2023
17e1576
icons: update favicon
Nasfame Jun 26, 2023
f933104
fix: icon paths
Nasfame Jun 26, 2023
c3818e5
refactor: to public
Nasfame Jun 26, 2023
2e164a8
fix: @ syntax
Nasfame Jun 26, 2023
56af1b9
fix: github-pages
Nasfame Jun 26, 2023
5db9a43
update: manifest
Nasfame Jun 26, 2023
726202d
add: robots.txt
Nasfame Jun 26, 2023
ab634f9
title: style
Nasfame Jun 26, 2023
1a0ee9b
lint:
Nasfame Jun 26, 2023
e3f9c55
wip: kidding with refactor
Nasfame Jun 26, 2023
1055d68
Revert "wip: kidding with refactor"
Nasfame Jun 26, 2023
3c889a2
update apis: v2
Nasfame Jun 27, 2023
946f475
Update FUNDING.yml
Nasfame Jun 28, 2023
9a70b6d
revert: deploy
Nasfame Jun 26, 2023
39e05a3
deps:
Nasfame Jun 26, 2023
4f8e528
icons: update favicon
Nasfame Jun 26, 2023
db8f69c
fix: icon paths
Nasfame Jun 26, 2023
f2e8da4
refactor: to public
Nasfame Jun 26, 2023
308a803
fix: @ syntax
Nasfame Jun 26, 2023
ead3416
fix: github-pages
Nasfame Jun 26, 2023
63182aa
update: manifest
Nasfame Jun 26, 2023
665c11a
add: robots.txt
Nasfame Jun 26, 2023
0293be0
title: style
Nasfame Jun 26, 2023
415310a
lint:
Nasfame Jun 26, 2023
50a582f
wip: kidding with refactor
Nasfame Jun 26, 2023
d7f141e
Revert "wip: kidding with refactor"
Nasfame Jun 26, 2023
18213b4
update apis: v2
Nasfame Jun 27, 2023
1741710
Merge branch 'main' into hiro/release
Nasfame Jun 28, 2023
fd3069d
Merge pull request #20 from aichats/hiro/release
Nasfame Jun 28, 2023
ffdc298
fix: deploy
Nasfame Jun 28, 2023
e8dbc33
Merge remote-tracking branch 'origin/hiro/release' into hiro/release
Nasfame Jun 28, 2023
8d58eea
Merge remote-tracking branch 'origin' into hiro/release
Nasfame Jun 28, 2023
a2f87c5
ci: fix deploy (#27)
Nasfame Jun 28, 2023
e088ff5
postman
Nasfame Jun 28, 2023
8ed25a7
Merge branch 'main' into hiro/release
Nasfame Jun 28, 2023
e20eefc
fix: deploy
Nasfame Jun 29, 2023
18b6e2e
#23 Submit arrow disabled when nothing is typed
codypharm Jul 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BASE_URL_PROD=
14 changes: 14 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': 'warn',
},
}
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [Nasfame]

48 changes: 48 additions & 0 deletions .github/archivedworkflow/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
paths:
- '.github/workflows/deploy.yml'
pull_request:
branches:
- main
workflow_dispatch:

env:
VITE_BASE_URL_PROD: "https://34.199.237.66"

permissions:
contents: write
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory:

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm install --include=dev

- name: Build static assets
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
49 changes: 49 additions & 0 deletions .github/archivedworkflow/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # Adjust the branch name as per your project setup
pull_request:
branches: [ "main" ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Get yarn cache
id: yarn-cache
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: npm install # or yarn install

- name: Build React app
run: npm run build # or yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
62 changes: 62 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # Adjust the branch name as per your project setup
paths:
- '.github/workflows/deploy.yml'
pull_request:
branches: [ "main" ]
workflow_dispatch:

env:
VITE_BASE_URL_PROD: "http://34.199.237.66"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory:

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Get npm cache
id: npm-cache
run: echo "NPM_CACHE_DIR=$(pwd)/node_modules" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.NPM_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**package.json') }}
restore-keys: |
${{ runner.os }}-npm-${{ hashFiles('**package.json') }}

- name: Install dependencies
run: npm install --include=dev

- name: Deploy React to GitHub Pages
uses: bitovi/[email protected]
with:
checkout: false
# Specifies the path of the static assets after building
path: ${{ github.workspace }}/build
# Specifies the command to run after npm ci for the build
build_command: npm run build
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,32 @@ modern.jsonp
resources/sass/.sass-cache/
resources/.arch-internal-preview.css
.arch-internal-preview.css
node_modules/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
package-lock.json
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env

.env-*
42 changes: 40 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# AI-Chats
Lets build something cooler that chatgpt
# AI Chats

![AI Chats](https://github.com/aichats/aichats/assets/24226219/6dc98a69-03bd-461f-ae88-39a61fac59d5)

AI Chats is an AI-powered chatbot that can simulate human-like conversation and assist with various tasks. It is built using natural language processing and machine learning techniques to understand and respond to user queries.

## Features

- Natural language understanding and response generation
- Task assistance such as scheduling appointments and answering FAQs
- Learning and improvement over time

## Inspiration

The inspiration behind AI Chats was to explore the potential of artificial intelligence in enhancing human interaction. The goal was to create a chatbot that could provide valuable assistance and simulate human-like conversation.

## How It Works

AI Chats is built using Python, Golang, Node.js, and React. It leverages openAI for natural language processing and pinecone for efficient search and retrieval of responses. The chatbot is trained on a large dataset of conversations to improve its understanding and response accuracy.

## Challenges

One of the main challenges faced during development was improving the chatbot's accuracy and ability to understand complex queries. Extensive testing and fine-tuning were done to ensure relevant and helpful responses.

## Accomplishments

The team is proud to have created a chatbot that can understand natural language and provide helpful responses. The user-friendly interface makes it easy for users to interact with the chatbot.

## Future Plans

In the future, the team plans to integrate AI Chats with other platforms and services to enhance its functionality. They also aim to improve its ability to handle complex queries and provide more personalized responses.

## Try It Out

Visit [AI Chats](http://aichats.surge.sh) to try out the chatbot and experience its capabilities.

## Getting Started

To get started with the project, follow the instructions in the [GitHub repository](https://github.com/aichats/aichats).

21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="apple-touch-icon" sizes="192x192" href="/public/assets/android-chrome-192x192.png" />
<link rel="apple-touch-icon" sizes="512x512" href="/public/assets/android-chrome-512x512.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/public/assets/apple-touch-icon.png" />

<link rel="icon" type="image/png" sizes="16x16" href="/public/assets/favicon-16x16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/public/assets/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="48x48" href="/public/assets/favicon.ico" />
<link rel="manifest" href="/public/assets/site.webmanifest" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AIChats</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Empty file added index.ts
Empty file.
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "frontend",
"private": false,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"deploy": "VITE_BASE_URL_PROD=https://34.199.237.66 npm run build && surge build aichats.surge.sh ",
"gh": "gh-pages -d build"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.3",
"axios": "^1.4.0",
"firebase": "^9.23.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.10.1",
"react-query": "^3.39.3",
"react-scroll-to-bottom": "^4.2.0",
"zustand": "^4.3.8"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/react-scroll-to-bottom": "^4.2.1",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.2",
"vite": "^4.3.9",
"gh-pages": "^3.2.3"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Loading