Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andylee20014 committed Feb 11, 2025
2 parents 863b708 + 5af600a commit 7142b9b
Show file tree
Hide file tree
Showing 77 changed files with 950 additions and 426 deletions.
109 changes: 109 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,115 @@

# Changelog

### [Version 1.52.15](https://github.com/lobehub/lobe-chat/compare/v1.52.14...v1.52.15)

<sup>Released on **2025-02-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix lmstudio baseURL.

#### 💄 Styles

- **misc**: Optimized MaxToken Slider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- **misc**: Fix lmstudio baseURL, closes [#5988](https://github.com/lobehub/lobe-chat/issues/5988) ([1d19aa6](https://github.com/lobehub/lobe-chat/commit/1d19aa6))

#### Styles

- **misc**: Optimized MaxToken Slider, closes [#5952](https://github.com/lobehub/lobe-chat/issues/5952) ([3cdcb95](https://github.com/lobehub/lobe-chat/commit/3cdcb95))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.52.14](https://github.com/lobehub/lobe-chat/compare/v1.52.13...v1.52.14)

<sup>Released on **2025-02-10**</sup>

#### 💄 Styles

- **misc**: Refactor agent settings modal.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

- **misc**: Refactor agent settings modal, closes [#5987](https://github.com/lobehub/lobe-chat/issues/5987) ([6482f8a](https://github.com/lobehub/lobe-chat/commit/6482f8a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.52.13](https://github.com/lobehub/lobe-chat/compare/v1.52.12...v1.52.13)

<sup>Released on **2025-02-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix Aliyun deepseek-r1 reasoning parsing with oneapi, Support Aliyun deepseek-r1 reasoning.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- **misc**: Fix Aliyun deepseek-r1 reasoning parsing with oneapi, closes [#5964](https://github.com/lobehub/lobe-chat/issues/5964) ([0d7e665](https://github.com/lobehub/lobe-chat/commit/0d7e665))
- **misc**: Support Aliyun deepseek-r1 reasoning, closes [#5954](https://github.com/lobehub/lobe-chat/issues/5954) ([cf7a2d6](https://github.com/lobehub/lobe-chat/commit/cf7a2d6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.52.12](https://github.com/lobehub/lobe-chat/compare/v1.52.11...v1.52.12)

<sup>Released on **2025-02-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix language incorrect on page hydration.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- **misc**: Fix language incorrect on page hydration, closes [#5970](https://github.com/lobehub/lobe-chat/issues/5970) ([91912cf](https://github.com/lobehub/lobe-chat/commit/91912cf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.52.11](https://github.com/lobehub/lobe-chat/compare/v1.52.10...v1.52.11)

<sup>Released on **2025-02-10**</sup>
Expand Down
31 changes: 31 additions & 0 deletions changelog/v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
[
{
"children": {
"fixes": ["Fix lmstudio baseURL."],
"improvements": ["Optimized MaxToken Slider."]
},
"date": "2025-02-10",
"version": "1.52.15"
},
{
"children": {
"improvements": ["Refactor agent settings modal."]
},
"date": "2025-02-10",
"version": "1.52.14"
},
{
"children": {
"fixes": [
"Fix Aliyun deepseek-r1 reasoning parsing with oneapi, Support Aliyun deepseek-r1 reasoning."
]
},
"date": "2025-02-10",
"version": "1.52.13"
},
{
"children": {
"fixes": ["Fix language incorrect on page hydration."]
},
"date": "2025-02-10",
"version": "1.52.12"
},
{
"children": {
"improvements": ["Support Mermaid in Artifacts."]
Expand Down
24 changes: 24 additions & 0 deletions docker-compose/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,30 @@ services:
env_file:
- .env
restart: always
entrypoint: >
/bin/sh -c "
/bin/node /app/startServer.js &
LOBE_PID=\$!
sleep 3
if [ $(wget --timeout=5 --spider --server-response ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep -c 'HTTP/1.1 200 OK') -eq 0 ]; then
echo '⚠️Warining: Unable to fetch OIDC configuration from Casdoor'
echo 'Request URL: ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration'
echo 'Read more at: https://lobehub.com/docs/self-hosting/server-database/docker-compose#necessary-configuration'
else
if ! wget -O - --timeout=5 ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep 'issuer' | grep ${AUTH_CASDOOR_ISSUER}; then
printf '❌Error: The Auth issuer is conflict, Issuer in OIDC configuration is: %s' \$(wget -O - --timeout=5 ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep -E 'issuer.*' | awk -F '\"' '{print \$4}')
echo ' , but the issuer in .env file is: ${AUTH_CASDOOR_ISSUER} '
echo 'Request URL: ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration'
echo 'Read more at: https://lobehub.com/docs/self-hosting/server-database/docker-compose#necessary-configuration'
fi
fi
if [ $(wget --timeout=5 --spider --server-response ${S3_ENDPOINT}/minio/health/live 2>&1 | grep -c 'HTTP/1.1 200 OK') -eq 0 ]; then
echo '⚠️Warining: Unable to fetch MinIO health status'
echo 'Request URL: ${S3_ENDPOINT}/minio/health/live'
echo 'Read more at: https://lobehub.com/docs/self-hosting/server-database/docker-compose#necessary-configuration'
fi
wait \$LOBE_PID
"
volumes:
data:
Expand Down
4 changes: 2 additions & 2 deletions docs/self-hosting/advanced/auth/next-auth/casdoor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ If you are deploying using a public network, the following assumptions apply:

Configure the Casdoor webhook so that LobeChat can receive notifications when user information is updated.

Go to `Admin ` -> `Webhooks`, add a webhook, and fill in the following fields:
Go to `Admin` -> `Webhooks`, add a webhook, and fill in the following fields:

- URL: `https://lobe.example.com/api/auth/webhooks/casdoor`
- Method: `POST`
- Content Type: `application/json`
- Headers: `casdoor-secret`: `Your Webhook Secret`
> The webhook is generated by yourself, you can visit https://generate-secret.vercel.app/10 to generate a 10 bit secret.
> The secret is generated by yourself, you can visit https://generate-secret.vercel.app/10 to generate a 10 bit secret.
- Event: `update-user`
- Is user extented: `true`
Expand Down
4 changes: 2 additions & 2 deletions docs/self-hosting/environment-variables/auth.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
- 默认值: `-`
- 示例: `evCnOJP1UX8FMnXR9Xkj5t0NyFn5p70P`

#### `AUTH_AUTH_SECRET`
#### `AUTH_AUTH0_SECRET`

- 类型:必选
- 描述: Auth0 应用程序的 Client Secret
Expand Down Expand Up @@ -280,4 +280,4 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
- 类型:必选
- 描述: Clerk 应用程序的 Secret key。您可以在[这里](https://dashboard.clerk.com)访问,并导航到 API Keys 以查看。
- 默认值:`-`
- 示例: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` (测试环境) / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ`(生产环境)
- 示例: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` (测试环境) / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ`(生产环境)
4 changes: 4 additions & 0 deletions docs/self-hosting/platform/btpanel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ To install aaPanel, go to the [aaPanel](https://www.aapanel.com/new/download.htm

6. After submission, the panel will automatically initialize the application, which will take about `1-3` minutes. It can be accessed after the initialization is completed.

<Callout type="warning">
⚠️ Do not enable any form of cache in the reverse proxy settings of the panel to avoid affecting the normal operation of the service. Read more at https://github.com/lobehub/lobe-chat/discussions/5986
</Callout>

## Visit LobeChat

- If you have set a domain name, please directly enter the domain name in the browser address bar, such as `http://demo.lobechat`, to access the `LobeChat` console.
Expand Down
4 changes: 4 additions & 0 deletions docs/self-hosting/platform/btpanel.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ tags:

5. 提交后面板会自动进行应用初始化,大概需要`1-3`分钟,初始化完成后即可访问。

<Callout type="warning">
⚠️ 请不要在面板的反向代理设置中开启任何形式的缓存,以免影响服务的正常运行。详情请见 https://github.com/lobehub/lobe-chat/discussions/5986
</Callout>

## 访问 LobeChat

- 如果您填写域名,请在浏览器输入您的域名访问,如`http://demo.lobechat`,即可访问 `LobeChat` 页面。
Expand Down
4 changes: 4 additions & 0 deletions docs/self-hosting/server-database/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ The script supports the following deployment modes; please choose the appropriat
proxy_set_header X-Forwarded-Proto $scheme; # Keep the request protocol
}
```

⚠️ If you are using such panel software,
please do not enable any form of caching in the reverse proxy settings of such panel software to avoid affecting the normal operation of the service.
Read more at https://github.com/lobehub/lobe-chat/discussions/5986
</Callout>

### Complete Remaining Configuration in Interactive Script
Expand Down
3 changes: 3 additions & 0 deletions docs/self-hosting/server-database/docker-compose.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ bash <(curl -fsSL https://lobe.li/setup.sh) -l zh_CN
proxy_set_header X-Forwarded-Proto $scheme; # 保留请求协议
}
```

⚠️ 请不要在此类面板软件的反向代理设置中开启任何形式的缓存,以免影响服务的正常运行。
详情请见 https://github.com/lobehub/lobe-chat/discussions/5986
</Callout>

### 在交互式脚本中完成剩余配置
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "1.52.11",
"version": "1.52.15",
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
"keywords": [
"framework",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import useSWR from 'swr';
import urlJoin from 'url-join';

import { assistantService } from '@/services/assistant';
import { useUserStore } from '@/store/user';
import { userGeneralSettingsSelectors } from '@/store/user/selectors';
import { useGlobalStore } from '@/store/global';
import { globalGeneralSelectors } from '@/store/global/selectors';
import { DiscoverAssistantItem } from '@/types/discover';

const { Paragraph } = Typography;
Expand Down Expand Up @@ -60,7 +60,7 @@ const useStyles = createStyles(({ css, token, responsive }) => ({

const AgentsSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
const { t } = useTranslation('welcome');
const locale = useUserStore(userGeneralSettingsSelectors.currentLanguage);
const locale = useGlobalStore(globalGeneralSelectors.currentLanguage);
const [sliceStart, setSliceStart] = useState(0);

const { data: assistantList, isLoading } = useSWR(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@ import { Flexbox } from 'react-layout-kit';

import HeaderContent from '@/app/[variants]/(main)/chat/settings/features/HeaderContent';
import Menu from '@/components/Menu';
import { useChatSettingsTab } from '@/hooks/useChatSettingsTab';
import { useQueryRoute } from '@/hooks/useQueryRoute';
import { ChatSettingsTabs } from '@/store/global/initialState';

import { useCategory } from './useCategory';

const CategoryContent = memo(() => {
interface CategoryContentProps {
setTab: (tab: ChatSettingsTabs) => void;
tab: string;
}
const CategoryContent = memo<CategoryContentProps>(({ setTab, tab }) => {
const cateItems = useCategory();
const tab = useChatSettingsTab();
const router = useQueryRoute();

return (
<>
<Menu
items={cateItems}
onClick={({ key }) => {
router.replace('/chat/settings/modal', { query: { tab: key } });
setTab(key as ChatSettingsTabs);
}}
selectable
selectedKeys={[tab as any]}
Expand Down
Loading

0 comments on commit 7142b9b

Please sign in to comment.