Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/lobehub/lobe-chat
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 2, 2025
2 parents af523b0 + 40044a0 commit 763eb41
Show file tree
Hide file tree
Showing 49 changed files with 422 additions and 50 deletions.
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@

# Changelog

### [Version 1.42.5](https://github.com/lobehub/lobe-chat/compare/v1.42.4...v1.42.5)

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

#### 🐛 Bug Fixes

- **misc**: Fix topic mobile view ui error.

<br/>

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

#### What's fixed

- **misc**: Fix topic mobile view ui error, closes [#5266](https://github.com/lobehub/lobe-chat/issues/5266) ([421a1b3](https://github.com/lobehub/lobe-chat/commit/421a1b3))

</details>

<div align="right">

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

</div>

### [Version 1.42.4](https://github.com/lobehub/lobe-chat/compare/v1.42.3...v1.42.4)

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

#### ♻ Code Refactoring

- **misc**: Refactor provider info and improve settings side bar loading.

<br/>

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

#### Code refactoring

- **misc**: Refactor provider info and improve settings side bar loading, closes [#5268](https://github.com/lobehub/lobe-chat/issues/5268) ([b82a41e](https://github.com/lobehub/lobe-chat/commit/b82a41e))

</details>

<div align="right">

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

</div>

### [Version 1.42.3](https://github.com/lobehub/lobe-chat/compare/v1.42.2...v1.42.3)

<sup>Released on **2025-01-01**</sup>
Expand Down
14 changes: 14 additions & 0 deletions changelog/v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
[
{
"children": {
"fixes": ["Fix topic mobile view ui error."]
},
"date": "2025-01-02",
"version": "1.42.5"
},
{
"children": {
"improvements": ["Refactor provider info and improve settings side bar loading."]
},
"date": "2025-01-02",
"version": "1.42.4"
},
{
"children": {},
"date": "2025-01-01",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "1.42.3",
"version": "1.42.5",
"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 Expand Up @@ -129,7 +129,7 @@
"@lobehub/chat-plugins-gateway": "^1.9.0",
"@lobehub/icons": "^1.56.0",
"@lobehub/tts": "^1.25.1",
"@lobehub/ui": "^1.155.7",
"@lobehub/ui": "^1.155.8",
"@neondatabase/serverless": "^0.10.1",
"@next/third-parties": "^15.0.0",
"@react-spring/web": "^9.7.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Topics = memo(({ children }: PropsWithChildren) => {
return (
<Modal
allowFullscreen
footer={null}
onCancel={() => setOpen(false)}
open={open}
styles={{
Expand Down
6 changes: 5 additions & 1 deletion src/app/(main)/settings/_layout/Desktop/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
'use client';

import { createStyles } from 'antd-style';
import { Suspense } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox, FlexboxProps } from 'react-layout-kit';

import BrandWatermark from '@/components/BrandWatermark';
import CircleLoading from '@/components/Loading/CircleLoading';
import PanelTitle from '@/components/PanelTitle';

const useStyles = createStyles(({ token, css }) => ({
Expand Down Expand Up @@ -33,7 +35,9 @@ const SidebarLayout = ({ children, className, title, desc, ...rest }: SidebarLay
{...rest}
>
<PanelTitle desc={desc || t('header.desc')} title={title || t('header.title')} />
<Flexbox flex={1}>{children}</Flexbox>
<Flexbox flex={1}>
<Suspense fallback={<CircleLoading />}>{children}</Suspense>
</Flexbox>
<BrandWatermark paddingInline={12} />
</Flexbox>
);
Expand Down
4 changes: 4 additions & 0 deletions src/config/modelProviders/ai21.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const Ai21: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://docs.ai21.com/reference',
name: 'Ai21Labs',
settings: {
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://studio.ai21.com',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/ai360.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ const Ai360: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://ai.360.cn/platform/docs/overview',
name: '360 AI',
settings: {
disableBrowserRequest: true,
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://ai.360.com',
};

Expand Down
11 changes: 11 additions & 0 deletions src/config/modelProviders/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ const Anthropic: ModelProviderCard = {
proxyUrl: {
placeholder: 'https://api.anthropic.com',
},
settings: {
proxyUrl: {
placeholder: 'https://api.anthropic.com',
},
sdkType: 'anthropic',
showModelFetcher: true,
smoothing: {
speed: 5,
text: true,
},
},
smoothing: {
speed: 5,
text: true,
Expand Down
4 changes: 4 additions & 0 deletions src/config/modelProviders/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const Azure: ModelProviderCard = {
id: 'azure',
modelsUrl: 'https://learn.microsoft.com/azure/ai-services/openai/concepts/models',
name: 'Azure',
settings: {
defaultShowBrowserRequest: true,
sdkType: 'azure',
},
url: 'https://azure.microsoft.com',
};

Expand Down
8 changes: 8 additions & 0 deletions src/config/modelProviders/baichuan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ const Baichuan: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://platform.baichuan-ai.com/price',
name: 'Baichuan',
settings: {
sdkType: 'openai',
showModelFetcher: true,
smoothing: {
speed: 2,
text: true,
},
},
smoothing: {
speed: 2,
text: true,
Expand Down
1 change: 1 addition & 0 deletions src/config/modelProviders/bedrock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ const Bedrock: ModelProviderCard = {
id: 'bedrock',
modelsUrl: 'https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html',
name: 'Bedrock',
settings: { sdkType: 'bedrock' },
url: 'https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ const Cloudflare: ModelProviderCard = {
showModelFetcher: true,
},
name: 'Cloudflare Workers AI',
settings: {
disableBrowserRequest: true,
sdkType: 'cloudflare',
showModelFetcher: true,
},
url: 'https://developers.cloudflare.com/workers-ai/models',
};

Expand Down
4 changes: 4 additions & 0 deletions src/config/modelProviders/deepseek.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const DeepSeek: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://platform.deepseek.com/api-docs/zh-cn/quick_start/pricing',
name: 'DeepSeek',
settings: {
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://deepseek.com',
};

Expand Down
4 changes: 4 additions & 0 deletions src/config/modelProviders/fireworksai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ const FireworksAI: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://fireworks.ai/models?show=Serverless',
name: 'Fireworks AI',
settings: {
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://fireworks.ai',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/giteeai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ const GiteeAI: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://ai.gitee.com/docs/openapi/v1#tag/serverless/POST/chat/completions',
name: 'Gitee AI',
settings: {
disableBrowserRequest: true,
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://ai.gitee.com',
};

Expand Down
7 changes: 6 additions & 1 deletion src/config/modelProviders/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,13 @@ const Github: ModelProviderCard = {
description: '通过GitHub模型,开发人员可以成为AI工程师,并使用行业领先的AI模型进行构建。',
enabled: true,
id: 'github',
modelList: { showModelFetcher: true }, // I'm not sure if it is good to show the model fetcher, as remote list is not complete.
modelList: { showModelFetcher: true },
// I'm not sure if it is good to show the model fetcher, as remote list is not complete.
name: 'GitHub',
settings: {
sdkType: 'azure',
showModelFetcher: true,
},
url: 'https://github.com/marketplace/models',
};

Expand Down
10 changes: 10 additions & 0 deletions src/config/modelProviders/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,16 @@ const Google: ModelProviderCard = {
proxyUrl: {
placeholder: 'https://generativelanguage.googleapis.com',
},
settings: {
proxyUrl: {
placeholder: 'https://generativelanguage.googleapis.com',
},
sdkType: 'google',
smoothing: {
speed: 2,
text: true,
},
},
smoothing: {
speed: 2,
text: true,
Expand Down
7 changes: 7 additions & 0 deletions src/config/modelProviders/groq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ const Groq: ModelProviderCard = {
proxyUrl: {
placeholder: 'https://api.groq.com/openai/v1',
},
settings: {
proxyUrl: {
placeholder: 'https://api.groq.com/openai/v1',
},
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://groq.com',
};

Expand Down
9 changes: 9 additions & 0 deletions src/config/modelProviders/higress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2476,6 +2476,15 @@ const Higress: ModelProviderCard = {
placeholder: 'https://127.0.0.1:8080/v1',
title: 'AI Gateway地址',
},
settings: {
proxyUrl: {
desc: '输入Higress AI Gateway的访问地址',
placeholder: 'https://127.0.0.1:8080/v1',
title: 'AI Gateway地址',
},
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://apig.console.aliyun.com/',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/huggingface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ const HuggingFace: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://huggingface.co/docs/api-inference/en/supported-models',
name: 'HuggingFace',
settings: {
disableBrowserRequest: true,
sdkType: 'huggingface',
showModelFetcher: true,
},
url: 'https://huggingface.co',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/hunyuan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ const Hunyuan: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://cloud.tencent.com/document/product/1729/104753',
name: 'Hunyuan',
settings: {
disableBrowserRequest: true,
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://hunyuan.tencent.com',
};

Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/internlm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const InternLM: ModelProviderCard = {
modelsUrl:
'https://internlm.intern-ai.org.cn/doc/docs/Models#%E8%8E%B7%E5%8F%96%E6%A8%A1%E5%9E%8B%E5%88%97%E8%A1%A8',
name: 'InternLM',
settings: {
disableBrowserRequest: true,
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://internlm.intern-ai.org.cn',
};

Expand Down
7 changes: 7 additions & 0 deletions src/config/modelProviders/minimax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ const Minimax: ModelProviderCard = {
id: 'minimax',
modelsUrl: 'https://platform.minimaxi.com/document/Models',
name: 'Minimax',
settings: {
sdkType: 'openai',
smoothing: {
speed: 2,
text: true,
},
},
smoothing: {
speed: 2,
text: true,
Expand Down
3 changes: 3 additions & 0 deletions src/config/modelProviders/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ const Mistral: ModelProviderCard = {
id: 'mistral',
modelsUrl: 'https://docs.mistral.ai/getting-started/models',
name: 'Mistral',
settings: {
sdkType: 'openai',
},
url: 'https://mistral.ai',
};

Expand Down
10 changes: 10 additions & 0 deletions src/config/modelProviders/moonshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ const Moonshot: ModelProviderCard = {
proxyUrl: {
placeholder: 'https://api.moonshot.cn/v1',
},
settings: {
proxyUrl: {
placeholder: 'https://api.moonshot.cn/v1',
},
sdkType: 'openai',
smoothing: {
speed: 2,
text: true,
},
},
smoothing: {
speed: 2,
text: true,
Expand Down
5 changes: 5 additions & 0 deletions src/config/modelProviders/novita.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ const Novita: ModelProviderCard = {
modelList: { showModelFetcher: true },
modelsUrl: 'https://novita.ai/model-api/product/llm-api',
name: 'Novita',
settings: {
disableBrowserRequest: true,
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://novita.ai',
};

Expand Down
Loading

0 comments on commit 763eb41

Please sign in to comment.