Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from lobehub:main #226

Merged
merged 3 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

# Changelog

### [Version 1.37.2](https://github.com/lobehub/lobe-chat/compare/v1.37.1...v1.37.2)

<sup>Released on **2024-12-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move pglite to client service.

<br/>

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

#### Code refactoring

- **misc**: Move pglite to client service, closes [#5133](https://github.com/lobehub/lobe-chat/issues/5133) ([c2ded24](https://github.com/lobehub/lobe-chat/commit/c2ded24))

</details>

<div align="right">

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

</div>

### [Version 1.37.1](https://github.com/lobehub/lobe-chat/compare/v1.37.0...v1.37.1)

<sup>Released on **2024-12-22**</sup>
Expand Down
7 changes: 7 additions & 0 deletions changelog/v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"children": {
"improvements": ["Move pglite to client service."]
},
"date": "2024-12-22",
"version": "1.37.2"
},
{
"children": {
"improvements": ["Refactor the client service to deprecated."]
Expand Down
4 changes: 2 additions & 2 deletions locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
"features": {
"knowledgeBase": {
"desc": "Build your personal knowledge base and easily start conversations with your assistant (coming soon)",
"title": "Support for knowledge base conversations, unlock your second brain"
"title": "Support for knowledge base conversations"
},
"localFirst": {
"desc": "Chat data is stored entirely in the browser, keeping your data always under your control.",
"title": "Local first, privacy first"
},
"pglite": {
"desc": "Built on PGlite, natively supports AI Native advanced features (vector retrieval)",
"desc": "Built on PGlite, natively supports AI Native advanced features (vector search)",
"title": "Next-generation client storage architecture"
}
},
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.37.1",
"version": "1.37.2",
"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 @@ -6,7 +6,7 @@ import { files, globalFiles, users } from '@/database/schemas';
import { clientS3Storage } from '@/services/file/ClientS3';
import { UploadFileParams } from '@/types/files';

import { ClientService } from './pglite';
import { ClientService } from './client';

const userId = 'file-user';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/file/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { CURRENT_CONFIG_VERSION } from '@/migrations';
import { ImportResults, ImporterEntryData } from '@/types/importer';

import { ClientService } from './pglite';
import { ClientService } from './client';

const userId = 'test-user-id';
const service = new ClientService(userId);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/import/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
CreateMessageParams,
} from '@/types/message';

import { ClientService } from './pglite';
import { ClientService } from './client';

const userId = 'message-db';
const sessionId = '1';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/message/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { installedPlugins, users } from '@/database/schemas';
import { LobeTool } from '@/types/tool';
import { LobeToolCustomPlugin } from '@/types/tool/plugin';

import { ClientService } from './pglite';
import { ClientService } from './client';
import { InstallPluginParams } from './type';

// Mocking modules and functions
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { LobeAgentChatConfig, LobeAgentConfig } from '@/types/agent';
import { LobeAgentSession, LobeSessionType, SessionGroups } from '@/types/session';

import { ClientService } from './pglite';
import { ClientService } from './client';

const userId = 'message-db';
const sessionService = new ClientService(userId);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/session/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/topic/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
2 changes: 1 addition & 1 deletion src/services/topic/pglite.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { clientDB, initializeDB } from '@/database/client/db';
import { sessions, topics, users } from '@/database/schemas';
import { ChatTopic } from '@/types/topic';

import { ClientService } from './pglite';
import { ClientService } from './client';

// Mock data
const userId = 'topic-user-test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { userSettings, users } from '@/database/schemas';
import { UserPreference } from '@/types/user';
import { UserSettings } from '@/types/user/settings';

import { ClientService } from './pglite';
import { ClientService } from './client';

const mockUser = {
avatar: 'avatar.png',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/user/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientService as DeprecatedService } from './_deprecated';
import { ClientService } from './pglite';
import { ClientService } from './client';
import { ServerService } from './server';

const clientService =
Expand Down
Loading