Skip to content

Commit d698f00

Browse files
authored
Merge branch 'lobehub:main' into main
2 parents 7941e4e + 3fdea68 commit d698f00

File tree

1,178 files changed

+55011
-18725
lines changed

Some content is hidden

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

1,178 files changed

+55011
-18725
lines changed

.env.example

+53-61
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,108 @@
11
# 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.
2-
#ACCESS_CODE=lobe66
3-
4-
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
5-
# CUSTOM_MODELS=model1,model2,model3
2+
# ACCESS_CODE=lobe66
63

74
# Specify your API Key selection method, currently supporting `random` and `turn`.
85
# API_KEY_SELECT_MODE=random
96

10-
# ---- only choose one from OpenAI Service and Azure OpenAI Service ---- #
117

128
########################################
13-
############ OpenAI Service ############
9+
######## Model Provider Service ########
1410
########################################
1511

12+
### OpenAI ###
13+
1614
# you openai api key
1715
OPENAI_API_KEY=sk-xxxxxxxxx
1816

1917
# use a proxy to connect to the OpenAI API
2018
# OPENAI_PROXY_URL=https://api.openai.com/v1
2119

22-
########################################
23-
######### Azure OpenAI Service #########
24-
########################################
25-
# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
20+
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
21+
# OPENAI_MODEL_LIST=gpt-3.5-turbo
22+
23+
24+
### Azure OpenAI ###
2625

26+
# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
2727
# use Azure OpenAI Service by uncomment the following line
28-
# USE_AZURE_OPENAI=1
2928

3029
# The API key you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
3130
# AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3231

3332
# The endpoint you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
34-
# OPENAI_PROXY_URL=https://docs-test-001.openai.azure.com
33+
# AZURE_ENDPOINT=https://docs-test-001.openai.azure.com
3534

3635
# Azure's API version, follows the YYYY-MM-DD format
37-
# AZURE_API_VERSION=2023-08-01-preview
36+
# AZURE_API_VERSION=2024-02-01
3837

39-
########################################
40-
############ ZhiPu AI Service ##########
41-
########################################
4238

43-
#ZHIPU_API_KEY=xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx
39+
### Anthropic Service ####
4440

45-
########################################
46-
########## Moonshot AI Service #########
47-
########################################
41+
# ANTHROPIC_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4842

49-
#MOONSHOT_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
43+
# use a proxy to connect to the Anthropic API
44+
# ANTHROPIC_PROXY_URL=https://api.anthropic.com
5045

51-
########################################
52-
########### Google AI Service ##########
53-
########################################
5446

55-
#GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
47+
### Google AI ####
5648

57-
########################################
58-
######### AWS Bedrock Service ##########
59-
########################################
49+
# GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6050

61-
#AWS_REGION=us-east-1
62-
#AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx
63-
#AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6451

65-
########################################
66-
######### Ollama AI Service ##########
67-
########################################
52+
### AWS Bedrock ###
53+
54+
# AWS_REGION=us-east-1
55+
# AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx
56+
# AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
57+
58+
59+
### Ollama AI ####
6860

6961
# You can use ollama to get and run LLM locally, learn more about it via https://github.com/ollama/ollama
62+
7063
# The local/remote ollama service url
71-
# OLLAMA_PROXY_URL=http://127.0.0.1:11434/v1
64+
# OLLAMA_PROXY_URL=http://127.0.0.1:11434
65+
66+
# OLLAMA_MODEL_LIST=your_ollama_model_names
67+
68+
69+
### OpenRouter Service ###
70+
71+
# OPENROUTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
72+
# OPENROUTER_MODEL_LIST=model1,model2,model3
7273

73-
########### Mistral AI Service ##########
74-
########################################
74+
75+
### Mistral AI ###
7576

7677
# MISTRAL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
7778

78-
########################################
79-
######### Perplexity Service ###########
80-
########################################
79+
### Perplexity Service ###
8180

8281
# PERPLEXITY_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8382

84-
########################################
85-
######### Anthropic Service ############
86-
########################################
83+
### Groq Service ####
8784

88-
# ANTHROPIC_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
85+
# GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8986

90-
########################################
91-
############ Groq Service ##############
92-
########################################
87+
#### 01.AI Service ####
9388

94-
# GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
89+
# ZEROONE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
9590

96-
########################################
97-
######### OpenRouter Service ##########
98-
########################################
91+
### TogetherAI Service ###
9992

100-
#OPENROUTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
101-
#OPENROUTER_CUSTOM_MODELS=model1,model2,model3
93+
# TOGETHERAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
10294

103-
########################################
104-
######### 01.AI Service ##########
105-
########################################
95+
### ZhiPu AI ###
10696

107-
#ZEROONE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
97+
# ZHIPU_API_KEY=xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx
10898

109-
########################################
110-
######### TogetherAI Service ##########
111-
########################################
99+
### Moonshot AI ####
100+
101+
# MOONSHOT_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
102+
103+
### Minimax AI ####
112104

113-
#TOGETHERAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
105+
# MINIMAX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
114106

115107
########################################
116108
############ Market Service ############

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: lobehub
44
patreon: # Replace with a single Patreon username
55
open_collective: lobehub
66
ko_fi: # Replace with a single Ko-fi username

.github/workflows/issue-close-require.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
actions: 'check-inactive'
2121
token: ${{ secrets.GH_TOKEN }}
2222
inactive-label: 'Inactive'
23-
inactive-day: 30
23+
inactive-day: 60
2424

2525
issue-close-require:
2626
permissions:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install bun
1515
uses: oven-sh/setup-bun@v1
1616
with:
17-
bun-version: ${{ secrets.BUN_VERSION }}
17+
bun-version: ${{ secrets.BUN_VERSION }}
1818

1919
- name: Install deps
2020
run: bun i

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Install bun
1111
uses: oven-sh/setup-bun@v1
1212
with:
13-
bun-version: ${{ secrets.BUN_VERSION }}
13+
bun-version: ${{ secrets.BUN_VERSION }}
1414

1515
- name: Install deps
1616
run: bun i
@@ -23,3 +23,5 @@ jobs:
2323

2424
- name: Upload coverage to Codecov
2525
uses: codecov/codecov-action@v4
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }} # required

.i18nrc.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,25 @@ module.exports = defineConfig({
2323
'vi-VN',
2424
],
2525
temperature: 0,
26-
modelName: 'gpt-3.5-turbo-1106',
27-
splitToken: 1024,
26+
modelName: 'gpt-3.5-turbo-0125',
27+
splitToken: 2048,
2828
experimental: {
2929
jsonMode: true,
3030
},
31-
reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
3231
markdown: {
33-
entry: ['./README.zh-CN.md', './docs/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
32+
// reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
33+
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
3434
entryLocale: 'zh-CN',
35-
entryExtension: '.zh-CN.md',
3635
outputLocales: ['en-US'],
37-
outputExtensions: (locale, { getDefaultExtension }) => {
38-
if (locale === 'en-US') return '.md';
39-
return getDefaultExtension(locale);
36+
exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
37+
outputExtensions: (locale, { filePath }) => {
38+
if (filePath.includes('.mdx')) {
39+
if (locale === 'en-US') return '.mdx';
40+
return `.${locale}.mdx`;
41+
} else {
42+
if (locale === 'en-US') return '.md';
43+
return `.${locale}.md`;
44+
}
4045
},
4146
},
4247
});

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ public-hoist-pattern[]=*prettier*
1212
public-hoist-pattern[]=*remark*
1313
public-hoist-pattern[]=*semantic-release*
1414
public-hoist-pattern[]=*stylelint*
15+
16+
public-hoist-pattern[]=@auth/core
17+
public-hoist-pattern[]=@clerk/backend
18+
public-hoist-pattern[]=@clerk/types

.seorc.cjs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { defineConfig } = require('@lobehub/seo-cli');
2+
3+
module.exports = defineConfig({
4+
entry: ['./docs/**/*.mdx'],
5+
modelName: 'gpt-3.5-turbo-0125',
6+
experimental: {
7+
jsonMode: true,
8+
},
9+
});

0 commit comments

Comments
 (0)