Skip to content

Commit

Permalink
feat: 0.1.0 (#273)
Browse files Browse the repository at this point in the history
* feat: 0.1.0

* feat: add LICENSE

* fix: settings
  • Loading branch information
okisdev authored Apr 12, 2024
1 parent c2e051b commit f8b2cc8
Show file tree
Hide file tree
Showing 322 changed files with 14,405 additions and 17,142 deletions.
48 changes: 24 additions & 24 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
72 changes: 57 additions & 15 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,24 +1,66 @@
# DATABASE
DATABASE_URL=
# --------------- Providers -----------------

# NEXTAUTH
NEXTAUTH_URL=
NEXTAUTH_SECRET=
## Amazon (not supported so far)
NEXT_PUBLIC_ACCESS_AWS=
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
AWS_REGION=

EMAIL_HOST=
EMAIL_PORT=
EMAIL_USERNAME=
EMAIL_PASSWORD=
EMAIL_FROM=
## Anthropic
NEXT_PUBLIC_ACCESS_ANTHROPIC=
ANTHROPIC_API_KEY=

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
## Azure (not supported so far)
NEXT_PUBLIC_ACCESS_AZURE=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOY_INSTANCE_NAME=

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
## Cohere
NEXT_PUBLIC_ACCESS_COHERE=
COHERE_API_KEY=

# PROVIDERS
## Fireworks
NEXT_PUBLIC_ACCESS_FIREWORKS=
FIREWORKS_API_KEY=

## Google
NEXT_PUBLIC_ACCESS_GOOGLE=
GOOGLE_API_KEY=

## Groq
NEXT_PUBLIC_ACCESS_GROQ=
GROQ_API_KEY=

## Hugging Face
NEXT_PUBLIC_ACCESS_HUGGINGFACE=
HUGGINGFACE_API_KEY=

## Mistral
NEXT_PUBLIC_ACCESS_MISTRAL=
MISTRAL_API_KEY=

## OpenAI
NEXT_PUBLIC_ACCESS_OPENAI=
OPENAI_API_KEY=
OPENAI_API_ENDPOINT=

## Perplexity
NEXT_PUBLIC_ACCESS_PERPLEXITY=
PERPLEXITY_API_KEY=
PERPLEXITY_ENDPOINT=

# -------------- Search Engines --------------

## Google
NEXT_PUBLIC_ACCESS_GOOGLE_SEARCH=
GOOGLE_SEARCH_API_KEY=
GOOGLE_SEARCH_ENGINE_ID=

## Tavily
NEXT_PUBLIC_ACCESS_TAVILY_SEARCH=
TAVILY_SEARCH_API_KEY=

## You
NEXT_PUBLIC_ACCESS_YOU_SEARCH=
YOU_SEARCH_API_KEY=
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
components/ui/**.tsx
93 changes: 79 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,82 @@
{
"root": true,
"extends": [
"next/core-web-vitals",
"plugin:tailwindcss/recommended"
"root": true,
"extends": [
"next",
"next/core-web-vitals",
"plugin:tailwindcss/recommended"
],
"plugins": [
"react",
"simple-import-sort",
"unused-imports"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js"
],
"parser": "@typescript-eslint/parser"
}
]
"no-console": "warn",
"react/no-unescaped-entities": "off"
},
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js"
],
"parser": "@typescript-eslint/parser"
},
{
"files": [
"*.js",
"*.jsx",
"*.ts",
"*.tsx"
],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
[
"^react",
"^@?\\w"
],
[
"^(@|components)(/.*|$)"
],
[
"^\\u0000"
],
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$"
],
[
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$"
],
[
"^.+\\.?(css)$"
]
]
}
]
}
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
tags: |
okisdev/chatchat:${{ steps.extract_tag.outputs.tag }}
okisdev/chatchat:latest
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64
40 changes: 0 additions & 40 deletions .github/workflows/sync.yml

This file was deleted.

8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
Expand Down Expand Up @@ -34,10 +35,3 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# vscode
.vscode

# next-pwa
public/sw.js
public/workbox-*.js
27 changes: 27 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"cSpell.words": [
"buildx",
"DOCKERHUB",
"fastapi",
"Groq",
"huggingface",
"langchain",
"langsmith",
"Lightbox",
"lucide",
"markdownit",
"mistralai",
"mixtral",
"onest",
"rehype",
"sonner",
"Tavily",
"tippyjs"
],
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"i18n-ally.localesPaths": [
"locales",
],
"i18n-ally.keystyle": "flat"
}
Loading

0 comments on commit f8b2cc8

Please sign in to comment.