Skip to content

Commit f8b2cc8

Browse files
authored
feat: 0.1.0 (#273)
* feat: 0.1.0 * feat: add LICENSE * fix: settings
1 parent c2e051b commit f8b2cc8

File tree

322 files changed

+14405
-17142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+14405
-17142
lines changed

.dockerignore

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
**/.classpath
2-
**/.dockerignore
3-
**/.env
4-
**/.git
5-
**/.gitignore
6-
**/.project
7-
**/.settings
8-
**/.toolstarget
9-
**/.vs
10-
**/.vscode
11-
**/*.*proj.user
12-
**/*.dbmdl
13-
**/*.jfm
14-
**/charts
15-
**/docker-compose*
16-
**/compose*
17-
**/Dockerfile*
18-
**/node_modules
19-
**/npm-debug.log
20-
**/obj
21-
**/secrets.dev.yaml
22-
**/values.dev.yaml
23-
LICENSE
24-
README.md
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/charts
15+
**/docker-compose*
16+
**/compose*
17+
**/Dockerfile*
18+
**/node_modules
19+
**/npm-debug.log
20+
**/obj
21+
**/secrets.dev.yaml
22+
**/values.dev.yaml
23+
LICENSE
24+
README.md

.env.example

Lines changed: 57 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,66 @@
1-
# DATABASE
2-
DATABASE_URL=
1+
# --------------- Providers -----------------
32

4-
# NEXTAUTH
5-
NEXTAUTH_URL=
6-
NEXTAUTH_SECRET=
3+
## Amazon (not supported so far)
4+
NEXT_PUBLIC_ACCESS_AWS=
5+
AWS_ACCESS_KEY=
6+
AWS_SECRET_KEY=
7+
AWS_REGION=
78

8-
EMAIL_HOST=
9-
EMAIL_PORT=
10-
EMAIL_USERNAME=
11-
EMAIL_PASSWORD=
12-
EMAIL_FROM=
9+
## Anthropic
10+
NEXT_PUBLIC_ACCESS_ANTHROPIC=
11+
ANTHROPIC_API_KEY=
1312

14-
GITHUB_CLIENT_ID=
15-
GITHUB_CLIENT_SECRET=
13+
## Azure (not supported so far)
14+
NEXT_PUBLIC_ACCESS_AZURE=
15+
AZURE_OPENAI_API_KEY=
16+
AZURE_OPENAI_ENDPOINT=
17+
AZURE_OPENAI_DEPLOY_INSTANCE_NAME=
1618

17-
GOOGLE_CLIENT_ID=
18-
GOOGLE_CLIENT_SECRET=
19+
## Cohere
20+
NEXT_PUBLIC_ACCESS_COHERE=
21+
COHERE_API_KEY=
1922

20-
# PROVIDERS
23+
## Fireworks
24+
NEXT_PUBLIC_ACCESS_FIREWORKS=
25+
FIREWORKS_API_KEY=
26+
27+
## Google
28+
NEXT_PUBLIC_ACCESS_GOOGLE=
29+
GOOGLE_API_KEY=
30+
31+
## Groq
32+
NEXT_PUBLIC_ACCESS_GROQ=
33+
GROQ_API_KEY=
34+
35+
## Hugging Face
36+
NEXT_PUBLIC_ACCESS_HUGGINGFACE=
37+
HUGGINGFACE_API_KEY=
38+
39+
## Mistral
40+
NEXT_PUBLIC_ACCESS_MISTRAL=
41+
MISTRAL_API_KEY=
2142

2243
## OpenAI
44+
NEXT_PUBLIC_ACCESS_OPENAI=
2345
OPENAI_API_KEY=
2446
OPENAI_API_ENDPOINT=
47+
48+
## Perplexity
49+
NEXT_PUBLIC_ACCESS_PERPLEXITY=
50+
PERPLEXITY_API_KEY=
51+
PERPLEXITY_ENDPOINT=
52+
53+
# -------------- Search Engines --------------
54+
55+
## Google
56+
NEXT_PUBLIC_ACCESS_GOOGLE_SEARCH=
57+
GOOGLE_SEARCH_API_KEY=
58+
GOOGLE_SEARCH_ENGINE_ID=
59+
60+
## Tavily
61+
NEXT_PUBLIC_ACCESS_TAVILY_SEARCH=
62+
TAVILY_SEARCH_API_KEY=
63+
64+
## You
65+
NEXT_PUBLIC_ACCESS_YOU_SEARCH=
66+
YOU_SEARCH_API_KEY=

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
components/ui/**.tsx

.eslintrc.json

Lines changed: 79 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,82 @@
11
{
2-
"root": true,
3-
"extends": [
4-
"next/core-web-vitals",
5-
"plugin:tailwindcss/recommended"
2+
"root": true,
3+
"extends": [
4+
"next",
5+
"next/core-web-vitals",
6+
"plugin:tailwindcss/recommended"
7+
],
8+
"plugins": [
9+
"react",
10+
"simple-import-sort",
11+
"unused-imports"
12+
],
13+
"parserOptions": {
14+
"sourceType": "module",
15+
"ecmaVersion": "latest"
16+
},
17+
"rules": {
18+
"simple-import-sort/imports": "error",
19+
"simple-import-sort/exports": "error",
20+
"unused-imports/no-unused-imports": "error",
21+
"unused-imports/no-unused-vars": [
22+
"warn",
23+
{
24+
"vars": "all",
25+
"varsIgnorePattern": "^_",
26+
"args": "after-used",
27+
"argsIgnorePattern": "^_"
28+
}
629
],
7-
"overrides": [
8-
{
9-
"files": [
10-
"*.ts",
11-
"*.tsx",
12-
"*.js"
13-
],
14-
"parser": "@typescript-eslint/parser"
15-
}
16-
]
30+
"no-console": "warn",
31+
"react/no-unescaped-entities": "off"
32+
},
33+
"overrides": [
34+
{
35+
"files": [
36+
"*.ts",
37+
"*.tsx",
38+
"*.js"
39+
],
40+
"parser": "@typescript-eslint/parser"
41+
},
42+
{
43+
"files": [
44+
"*.js",
45+
"*.jsx",
46+
"*.ts",
47+
"*.tsx"
48+
],
49+
"rules": {
50+
"simple-import-sort/imports": [
51+
"error",
52+
{
53+
"groups": [
54+
[
55+
"^react",
56+
"^@?\\w"
57+
],
58+
[
59+
"^(@|components)(/.*|$)"
60+
],
61+
[
62+
"^\\u0000"
63+
],
64+
[
65+
"^\\.\\.(?!/?$)",
66+
"^\\.\\./?$"
67+
],
68+
[
69+
"^\\./(?=.*/)(?!/?$)",
70+
"^\\.(?!/?$)",
71+
"^\\./?$"
72+
],
73+
[
74+
"^.+\\.?(css)$"
75+
]
76+
]
77+
}
78+
]
79+
}
80+
}
81+
]
1782
}

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
tags: |
5454
okisdev/chatchat:${{ steps.extract_tag.outputs.tag }}
5555
okisdev/chatchat:latest
56-
platforms: linux/amd64,linux/arm64
56+
platforms: linux/amd64,linux/arm64

.github/workflows/sync.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage
@@ -34,10 +35,3 @@ yarn-error.log*
3435
# typescript
3536
*.tsbuildinfo
3637
next-env.d.ts
37-
38-
# vscode
39-
.vscode
40-
41-
# next-pwa
42-
public/sw.js
43-
public/workbox-*.js

.vscode/settings.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"cSpell.words": [
3+
"buildx",
4+
"DOCKERHUB",
5+
"fastapi",
6+
"Groq",
7+
"huggingface",
8+
"langchain",
9+
"langsmith",
10+
"Lightbox",
11+
"lucide",
12+
"markdownit",
13+
"mistralai",
14+
"mixtral",
15+
"onest",
16+
"rehype",
17+
"sonner",
18+
"Tavily",
19+
"tippyjs"
20+
],
21+
"python.analysis.typeCheckingMode": "basic",
22+
"python.analysis.autoImportCompletions": true,
23+
"i18n-ally.localesPaths": [
24+
"locales",
25+
],
26+
"i18n-ally.keystyle": "flat"
27+
}

0 commit comments

Comments
 (0)