@lobehub/chat 1.40.0 → 1.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.40.1](https://github.com/lobehub/lobe-chat/compare/v1.40.0...v1.40.1)
6
+
7
+ <sup>Released on **2024-12-26**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix o1Models list.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix o1Models list, closes [#5183](https://github.com/lobehub/lobe-chat/issues/5183) ([10d9904](https://github.com/lobehub/lobe-chat/commit/10d9904))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 1.40.0](https://github.com/lobehub/lobe-chat/compare/v1.39.3...v1.40.0)
6
31
 
7
32
  <sup>Released on **2024-12-26**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix o1Models list."
6
+ ]
7
+ },
8
+ "date": "2024-12-26",
9
+ "version": "1.40.1"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "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.",
5
5
  "keywords": [
6
6
  "framework",
@@ -4,6 +4,7 @@ import isEqual from 'fast-deep-equal';
4
4
  import { useHotkeys } from 'react-hotkeys-hook';
5
5
 
6
6
  import { HOTKEYS } from '@/const/hotkeys';
7
+ import { useOpenChatSettings } from '@/hooks/useInterceptingRoutes';
7
8
  import { useChatStore } from '@/store/chat';
8
9
  import { chatSelectors } from '@/store/chat/selectors';
9
10
  import { useGlobalStore } from '@/store/global';
@@ -13,12 +14,18 @@ const HotKeys = () => {
13
14
  const lastMessage = useChatStore(chatSelectors.latestMessage, isEqual);
14
15
 
15
16
  const toggleZenMode = useGlobalStore((s) => s.toggleZenMode);
17
+ const openChatSettings = useOpenChatSettings();
16
18
 
17
19
  useHotkeys(HOTKEYS.zenMode, toggleZenMode, {
18
20
  enableOnFormTags: true,
19
21
  preventDefault: true,
20
22
  });
21
23
 
24
+ useHotkeys(HOTKEYS.chatSettings, () => openChatSettings(), {
25
+ enableOnFormTags: true,
26
+ preventDefault: true,
27
+ });
28
+
22
29
  useHotkeys(
23
30
  HOTKEYS.regenerate,
24
31
  () => {
@@ -4,6 +4,7 @@ export const SAVE_TOPIC_KEY = 'n';
4
4
  export const CLEAN_MESSAGE_KEY = 'backspace';
5
5
 
6
6
  export const HOTKEYS = {
7
+ chatSettings: 'mod+comma',
7
8
  regenerate: 'alt+r',
8
9
  saveTopic: 'alt+n',
9
10
  zenMode: 'mod+\\',
@@ -7,6 +7,8 @@ export const o1Models = new Set([
7
7
  'o1-preview-2024-09-12',
8
8
  'o1-mini',
9
9
  'o1-mini-2024-09-12',
10
+ 'o1',
11
+ 'o1-2024-12-17',
10
12
  ]);
11
13
 
12
14
  export const pruneO1Payload = (payload: ChatStreamPayload) => ({