-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat:提交前端代码 * feat:提交logo样式切换 * feat:替换avatar、部分位置icon、chatchat相关说明、git链接、Wiki链接、关于、设置、反馈与建议等功能,关闭lobehub自检更新功能 * fix:移除多余代码 --------- Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
- Loading branch information
1 parent
16d9b60
commit d63bf0b
Showing
1,195 changed files
with
97,483 additions
and
13 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from .basic_config import * | ||
from .model_config import * | ||
from .kb_config import * | ||
from .server_config import * | ||
from .prompt_config import * | ||
|
||
|
||
VERSION = "v0.3.0-preview" | ||
from .basic_config import * | ||
from .model_config import * | ||
from .kb_config import * | ||
from .server_config import * | ||
from .prompt_config import * | ||
|
||
|
||
VERSION = "v0.3.0-preview" |
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,3 @@ | ||
[install.lockfile] | ||
|
||
save = false |
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 @@ | ||
module.exports = require('@lobehub/lint').changelog; |
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 @@ | ||
module.exports = require('@lobehub/lint').commitlint; |
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,11 @@ | ||
Dockerfile | ||
.dockerignore | ||
node_modules | ||
npm-debug.log | ||
.next | ||
.git | ||
scripts | ||
docs | ||
.github | ||
*.md | ||
.env.example |
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,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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,106 @@ | ||
# add a access code to lock your lobe-chat application, you can set a long password to avoid leaking. If this value contains a comma, it is a password array. | ||
#ACCESS_CODE=lobe66 | ||
|
||
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106 | ||
# CUSTOM_MODELS=model1,model2,model3 | ||
|
||
# Specify your API Key selection method, currently supporting `random` and `turn`. | ||
# API_KEY_SELECT_MODE=random | ||
|
||
# ---- only choose one from OpenAI Service and Azure OpenAI Service ---- # | ||
|
||
######################################## | ||
############ OpenAI Service ############ | ||
######################################## | ||
|
||
# you openai api key | ||
OPENAI_API_KEY=sk-xxxxxxxxx | ||
|
||
# use a proxy to connect to the OpenAI API | ||
# OPENAI_PROXY_URL=https://api.openai.com/v1 | ||
|
||
######################################## | ||
######### Azure OpenAI Service ######### | ||
######################################## | ||
# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview | ||
|
||
# use Azure OpenAI Service by uncomment the following line | ||
# USE_AZURE_OPENAI=1 | ||
|
||
# The API key you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section. | ||
# AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
# The endpoint you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section. | ||
# OPENAI_PROXY_URL=https://docs-test-001.openai.azure.com | ||
|
||
# Azure's API version, follows the YYYY-MM-DD format | ||
# AZURE_API_VERSION=2023-08-01-preview | ||
|
||
######################################## | ||
############ ZhiPu AI Service ########## | ||
######################################## | ||
|
||
#ZHIPU_API_KEY=xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx | ||
|
||
######################################## | ||
########## Moonshot AI Service ######### | ||
######################################## | ||
|
||
#MOONSHOT_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
########### Google AI Service ########## | ||
######################################## | ||
|
||
#GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
######### AWS Bedrock Service ########## | ||
######################################## | ||
|
||
#AWS_REGION=us-east-1 | ||
#AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx | ||
#AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
######### Ollama AI Service ########## | ||
######################################## | ||
|
||
# You can use ollama to get and run LLM locally, learn more about it via https://github.com/ollama/ollama | ||
# The local/remote ollama service url | ||
# OLLAMA_PROXY_URL=http://127.0.0.1:11434/v1 | ||
|
||
########### Mistral AI Service ########## | ||
######################################## | ||
|
||
#MISTRAL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
######### Perplexity Service ########## | ||
######################################## | ||
|
||
#PERPLEXITY_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
######### Anthropic Service ########## | ||
######################################## | ||
|
||
#ANTHROPIC_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
######################################## | ||
############ Market Service ############ | ||
######################################## | ||
|
||
# The LobeChat agents market index url | ||
# AGENTS_INDEX_URL=https://chat-agents.lobehub.com | ||
|
||
######################################## | ||
############ Plugin Service ############ | ||
######################################## | ||
|
||
# The LobeChat plugins store index url | ||
# PLUGINS_INDEX_URL=https://chat-plugins.lobehub.com | ||
|
||
# set the plugin settings | ||
# the format is `plugin-identifier:key1=value1;key2=value2`, multiple settings fields are separated by semicolons `;`, multiple plugin settings are separated by commas `,`. | ||
# PLUGIN_SETTINGS=search-engine:SERPAPI_API_KEY=xxxxx |
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,32 @@ | ||
# Eslintignore for LobeHub | ||
################################################################ | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# ci | ||
coverage | ||
.coverage | ||
|
||
# test | ||
jest* | ||
_test_ | ||
__test__ | ||
*.test.ts | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
.umi-test | ||
.dumi/tmp* | ||
!.dumirc.ts | ||
|
||
# production | ||
dist | ||
es | ||
lib | ||
logs | ||
|
||
# misc | ||
# add other ignore file below | ||
.next |
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,21 @@ | ||
const config = require('@lobehub/lint').eslint; | ||
|
||
config.extends.push('plugin:@next/next/recommended'); | ||
|
||
config.rules['unicorn/no-negated-condition'] = 0; | ||
config.rules['unicorn/prefer-type-error'] = 0; | ||
config.rules['unicorn/prefer-logical-operator-over-ternary'] = 0; | ||
config.rules['unicorn/no-null'] = 0; | ||
config.rules['unicorn/no-typeof-undefined'] = 0; | ||
config.rules['unicorn/explicit-length-check'] = 0; | ||
config.rules['unicorn/prefer-code-point'] = 0; | ||
config.rules['no-extra-boolean-cast'] = 0; | ||
config.rules['unicorn/no-useless-undefined'] = 0; | ||
config.rules['react/no-unknown-property'] = 0; | ||
config.rules['unicorn/prefer-ternary'] = 0; | ||
config.rules['unicorn/prefer-spread'] = 0; | ||
config.rules['unicorn/catch-error-name'] = 0; | ||
config.rules['unicorn/no-array-for-each'] = 0; | ||
config.rules['unicorn/prefer-number-properties'] = 0; | ||
|
||
module.exports = config; |
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,61 @@ | ||
# Gitignore for LobeHub | ||
################################################################ | ||
|
||
# general | ||
.DS_Store | ||
.idea | ||
.vscode | ||
.history | ||
.temp | ||
.env.local | ||
venv | ||
temp | ||
tmp | ||
|
||
# dependencies | ||
node_modules | ||
*.log | ||
*.lock | ||
package-lock.json | ||
|
||
# ci | ||
coverage | ||
.coverage | ||
.eslintcache | ||
.stylelintcache | ||
|
||
# production | ||
dist | ||
es | ||
lib | ||
logs | ||
test-output | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
.umi-test | ||
.dumi/tmp* | ||
|
||
# husky | ||
.husky/prepare-commit-msg | ||
|
||
# misc | ||
# add other ignore file below | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
.next | ||
.env | ||
public/*.js | ||
bun.lockb | ||
sitemap*.xml | ||
robots.txt | ||
|
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 @@ | ||
npx --no -- commitlint --edit ${1} |
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,2 @@ | ||
npm run type-check | ||
npx --no-install lint-staged |
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,41 @@ | ||
const { defineConfig } = require('@lobehub/i18n-cli'); | ||
|
||
module.exports = defineConfig({ | ||
entry: 'locales/zh-CN', | ||
entryLocale: 'zh-CN', | ||
output: 'locales', | ||
outputLocales: [ | ||
'ar', | ||
'zh-TW', | ||
'en-US', | ||
'ru-RU', | ||
'ja-JP', | ||
'ko-KR', | ||
'fr-FR', | ||
'tr-TR', | ||
'es-ES', | ||
'pt-BR', | ||
'de-DE', | ||
'it-IT', | ||
'nl-NL', | ||
'pl-PL', | ||
'vi-VN', | ||
], | ||
temperature: 0, | ||
modelName: 'gpt-3.5-turbo-1106', | ||
splitToken: 1024, | ||
experimental: { | ||
jsonMode: true, | ||
}, | ||
reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法', | ||
markdown: { | ||
entry: ['./README.zh-CN.md', './docs/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'], | ||
entryLocale: 'zh-CN', | ||
entryExtension: '.zh-CN.md', | ||
outputLocales: ['en-US'], | ||
outputExtensions: (locale, { getDefaultExtension }) => { | ||
if (locale === 'en-US') return '.md'; | ||
return getDefaultExtension(locale); | ||
}, | ||
}, | ||
}); |
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,14 @@ | ||
lockfile=false | ||
resolution-mode=highest | ||
|
||
enable-pre-post-scripts=true | ||
|
||
public-hoist-pattern[]=*@umijs/lint* | ||
public-hoist-pattern[]=*changelog* | ||
public-hoist-pattern[]=*commitlint* | ||
public-hoist-pattern[]=*eslint* | ||
public-hoist-pattern[]=*postcss* | ||
public-hoist-pattern[]=*prettier* | ||
public-hoist-pattern[]=*remark* | ||
public-hoist-pattern[]=*semantic-release* | ||
public-hoist-pattern[]=*stylelint* |
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 @@ | ||
lts/hydrogen |
Oops, something went wrong.