Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 22, 2025
2 parents 284ff5d + 2203fd4 commit 6d3226b
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 11 deletions.
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,64 @@

# Changelog

### [Version 1.47.17](https://github.com/lobehub/lobe-chat/compare/v1.47.16...v1.47.17)

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

#### 🐛 Bug Fixes

- **misc**: Upgrade `react-i18next` to ^15.

<br/>

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

#### What's fixed

- **misc**: Upgrade `react-i18next` to ^15, closes [#5553](https://github.com/lobehub/lobe-chat/issues/5553) ([d0275fd](https://github.com/lobehub/lobe-chat/commit/d0275fd))

</details>

<div align="right">

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

</div>

### [Version 1.47.16](https://github.com/lobehub/lobe-chat/compare/v1.47.15...v1.47.16)

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

#### ♻ Code Refactoring

- **misc**: Move hooks and component.

#### 💄 Styles

- **misc**: Add gemini new model.

<br/>

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

#### Code refactoring

- **misc**: Move hooks and component, closes [#5551](https://github.com/lobehub/lobe-chat/issues/5551) ([c5db091](https://github.com/lobehub/lobe-chat/commit/c5db091))

#### Styles

- **misc**: Add gemini new model, closes [#5546](https://github.com/lobehub/lobe-chat/issues/5546) ([ebdd626](https://github.com/lobehub/lobe-chat/commit/ebdd626))

</details>

<div align="right">

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

</div>

### [Version 1.47.15](https://github.com/lobehub/lobe-chat/compare/v1.47.14...v1.47.15)

<sup>Released on **2025-01-22**</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": ["Upgrade react-i18next to ^15."]
},
"date": "2025-01-22",
"version": "1.47.17"
},
{
"children": {
"improvements": ["Add gemini new model."]
},
"date": "2025-01-22",
"version": "1.47.16"
},
{
"children": {
"improvements": ["Improve discover model page."]
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.47.15",
"version": "1.47.17",
"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 @@ -202,7 +202,7 @@
"react-dom": "^19.0.0",
"react-fast-marquee": "^1.6.5",
"react-hotkeys-hook": "^4.6.1",
"react-i18next": "14.0.2",
"react-i18next": "^15.4.0",
"react-layout-kit": "^1.9.1",
"react-lazy-load": "^4.0.1",
"react-pdf": "^9.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { memo } from 'react';
import { Flexbox } from 'react-layout-kit';

import ModelSwitchPanel from '@/features/ModelSwitchPanel';
import PluginTag from '@/features/PluginTag';
import { useModelSupportToolUse } from '@/hooks/useModelSupportToolUse';
import { useAgentStore } from '@/store/agent';
import { agentSelectors } from '@/store/agent/selectors';

import PluginTag from '../../../features/PluginTag';
import KnowledgeTag from './KnowledgeTag';

const TitleTags = memo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import { PropsWithChildren, memo } from 'react';
import { useTranslation } from 'react-i18next';

import { useFetchTopics } from '@/hooks/useFetchTopics';
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
import { useGlobalStore } from '@/store/global';
import { systemStatusSelectors } from '@/store/global/selectors';

import { useWorkspaceModal } from '../../features/useWorkspaceModal';

const Topics = memo(({ children }: PropsWithChildren) => {
const [showAgentSettings, toggleConfig] = useGlobalStore((s) => [
systemStatusSelectors.mobileShowTopic(s),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';

import { DESKTOP_HEADER_ICON_SIZE, MOBILE_HEADER_ICON_SIZE } from '@/const/layoutTokens';
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
import { useChatStore } from '@/store/chat';

import { useWorkspaceModal } from '../useWorkspaceModal';

const ShareModal = dynamic(() => import('@/features/ShareModal'));

interface ShareButtonProps {
Expand Down
21 changes: 20 additions & 1 deletion src/config/aiModels/google.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
import { AIChatModelCard } from '@/types/aiModel';

const googleChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
enabled: true,
id: 'gemini-2.0-flash-thinking-exp-01-21',
maxOutput: 65_536,
pricing: {
cachedInput: 0,
input: 0,
output: 0,
},
releasedAt: '2025-01-21',
type: 'chat',
},
{
abilities: {
functionCall: true,
Expand All @@ -10,7 +30,6 @@ const googleChatModels: AIChatModelCard[] = [
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
enabled: true,
id: 'gemini-2.0-flash-thinking-exp-1219',
maxOutput: 8192,
pricing: {
Expand Down
18 changes: 17 additions & 1 deletion src/config/modelProviders/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,28 @@ import { ModelProviderCard } from '@/types/llm';
// ref: https://ai.google.dev/gemini-api/docs/models/gemini
const Google: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
enabled: true,
functionCall: true,
id: 'gemini-2.0-flash-thinking-exp-01-21',
maxOutput: 65_536,
pricing: {
cachedInput: 0,
input: 0,
output: 0,
},
releasedAt: '2025-01-21',
vision: true,
},
{
contextWindowTokens: 32_767 + 8192,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
enabled: true,
functionCall: true,
id: 'gemini-2.0-flash-thinking-exp-1219',
maxOutput: 8192,
Expand Down
2 changes: 1 addition & 1 deletion src/features/ChatInput/ActionBar/Tools/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { PropsWithChildren, memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';

import { useWorkspaceModal } from '@/app/(main)/chat/(workspace)/features/useWorkspaceModal';
import PluginStore from '@/features/PluginStore';
import { useCheckPluginsIsInstalled } from '@/hooks/useCheckPluginsIsInstalled';
import { useFetchInstalledPlugins } from '@/hooks/useFetchInstalledPlugins';
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
import { useAgentStore } from '@/store/agent';
import { agentSelectors } from '@/store/agent/selectors';
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/features/ShareModal/ShareImage/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';

import PluginTag from '@/app/(main)/chat/(workspace)/features/PluginTag';
import { ProductLogo } from '@/components/Branding';
import PluginTag from '@/features/PluginTag';
import { useAgentStore } from '@/store/agent';
import { agentSelectors } from '@/store/agent/selectors';
import { useSessionStore } from '@/store/session';
Expand Down
File renamed without changes.

0 comments on commit 6d3226b

Please sign in to comment.