@lobehub/chat 0.147.13 → 0.147.14

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 0.147.14](https://github.com/lobehub/lobe-chat/compare/v0.147.13...v0.147.14)
6
+
7
+ <sup>Released on **2024-04-14**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Enable `gemini-1.5-pro-latest` model by default.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Enable `gemini-1.5-pro-latest` model by default, closes [#2034](https://github.com/lobehub/lobe-chat/issues/2034) ([e8c65a9](https://github.com/lobehub/lobe-chat/commit/e8c65a9))
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 0.147.13](https://github.com/lobehub/lobe-chat/compare/v0.147.12...v0.147.13)
6
31
 
7
32
  <sup>Released on **2024-04-14**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.147.13",
3
+ "version": "0.147.14",
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",
@@ -26,7 +26,6 @@ const Google: ModelProviderCard = {
26
26
  {
27
27
  description: 'The best image understanding model to handle a broad range of applications',
28
28
  displayName: 'Gemini 1.0 Pro Vision',
29
- enabled: true,
30
29
  id: 'gemini-1.0-pro-vision-latest',
31
30
  maxOutput: 4096,
32
31
  tokens: 16_384,
@@ -35,6 +34,7 @@ const Google: ModelProviderCard = {
35
34
  {
36
35
  description: 'The best image understanding model to handle a broad range of applications',
37
36
  displayName: 'Gemini 1.0 Pro Vision',
37
+ enabled: true,
38
38
  id: 'gemini-pro-vision',
39
39
  maxOutput: 4096,
40
40
  tokens: 16_384,
@@ -59,6 +59,7 @@ const Google: ModelProviderCard = {
59
59
  {
60
60
  description: 'Mid-size multimodal model that supports up to 1 million tokens',
61
61
  displayName: 'Gemini 1.5 Pro',
62
+ enabled: true,
62
63
  id: 'gemini-1.5-pro-latest',
63
64
  maxOutput: 8192,
64
65
  tokens: 1_056_768,
@@ -1,6 +1,6 @@
1
1
  import { API_ENDPOINTS } from '@/services/_url';
2
2
  import { useGlobalStore } from '@/store/global';
3
- import { preferenceSelectors } from '@/store/global/slices/preference/selectors';
3
+ import { preferenceSelectors } from '@/store/global/selectors';
4
4
  import { TraceEventBasePayload, TraceEventPayloads } from '@/types/trace';
5
5
 
6
6
  class TraceService {
@@ -8,9 +8,7 @@ class TraceService {
8
8
  try {
9
9
  return fetch(API_ENDPOINTS.trace, {
10
10
  body: JSON.stringify(data),
11
- headers: {
12
- 'Content-Type': 'application/json',
13
- },
11
+ headers: { 'Content-Type': 'application/json' },
14
12
  method: 'POST',
15
13
  });
16
14
  } catch (e) {