@lobehub/chat 1.128.9 → 1.128.10
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/.github/workflows/sync-database-schema.yml +0 -3
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/docs/development/database-schema.dbml +2 -2
- package/next.config.ts +1 -46
- package/package.json +1 -2
- package/packages/agent-runtime/examples/tools-calling.ts +1 -1
- package/packages/const/src/layoutTokens.ts +1 -1
- package/packages/context-engine/src/base/BaseProcessor.ts +2 -1
- package/packages/database/migrations/0031_add_agent_index.sql +6 -2
- package/packages/database/migrations/0032_improve_agents_field.sql +6 -0
- package/packages/database/migrations/meta/0032_snapshot.json +6447 -0
- package/packages/database/migrations/meta/_journal.json +7 -0
- package/packages/database/src/core/migrations.json +14 -3
- package/packages/database/src/schemas/agent.ts +2 -2
- package/packages/database/src/server/models/__tests__/adapter.test.ts +1 -1
- package/src/app/(backend)/webapi/chat/azureai/route.test.ts +25 -0
- package/src/app/(backend)/webapi/chat/azureai/route.ts +6 -0
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +8 -1
- package/src/components/Error/index.tsx +3 -7
- package/sentry.client.config.ts +0 -30
- package/sentry.edge.config.ts +0 -17
- package/sentry.server.config.ts +0 -19
- package/src/app/[variants]/global-error.tsx +0 -20
- package/src/components/Error/sentryCaptureException.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.128.10](https://github.com/lobehub/lobe-chat/compare/v1.128.9...v1.128.10)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-09-16**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix azure ai runtime error.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix azure ai runtime error, closes [#9276](https://github.com/lobehub/lobe-chat/issues/9276) ([c21c14e](https://github.com/lobehub/lobe-chat/commit/c21c14e))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.128.9](https://github.com/lobehub/lobe-chat/compare/v1.128.8...v1.128.9)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-09-15**</sup>
|
package/changelog/v1.json
CHANGED
package/next.config.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import analyzer from '@next/bundle-analyzer';
|
|
2
|
-
import { withSentryConfig } from '@sentry/nextjs';
|
|
3
2
|
import withSerwistInit from '@serwist/next';
|
|
4
3
|
import type { NextConfig } from 'next';
|
|
5
4
|
import ReactComponentName from 'react-scan/react-component-name/webpack';
|
|
@@ -326,48 +325,4 @@ const withPWA =
|
|
|
326
325
|
})
|
|
327
326
|
: noWrapper;
|
|
328
327
|
|
|
329
|
-
|
|
330
|
-
const withSentry =
|
|
331
|
-
isProd && hasSentry
|
|
332
|
-
? (c: NextConfig) =>
|
|
333
|
-
withSentryConfig(
|
|
334
|
-
c,
|
|
335
|
-
{
|
|
336
|
-
org: process.env.SENTRY_ORG,
|
|
337
|
-
|
|
338
|
-
project: process.env.SENTRY_PROJECT,
|
|
339
|
-
// For all available options, see:
|
|
340
|
-
// https://github.com/getsentry/sentry-webpack-plugin#options
|
|
341
|
-
// Suppresses source map uploading logs during build
|
|
342
|
-
silent: true,
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
// Enables automatic instrumentation of Vercel Cron Monitors.
|
|
346
|
-
// See the following for more information:
|
|
347
|
-
// https://docs.sentry.io/product/crons/
|
|
348
|
-
// https://vercel.com/docs/cron-jobs
|
|
349
|
-
automaticVercelMonitors: true,
|
|
350
|
-
|
|
351
|
-
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
352
|
-
disableLogger: true,
|
|
353
|
-
|
|
354
|
-
// Hides source maps from generated client bundles
|
|
355
|
-
hideSourceMaps: true,
|
|
356
|
-
|
|
357
|
-
// Transpiles SDK to be compatible with IE11 (increases bundle size)
|
|
358
|
-
transpileClientSDK: true,
|
|
359
|
-
|
|
360
|
-
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
|
|
361
|
-
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
|
|
362
|
-
// side errors will fail.
|
|
363
|
-
tunnelRoute: '/monitoring',
|
|
364
|
-
|
|
365
|
-
// For all available options, see:
|
|
366
|
-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
367
|
-
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
368
|
-
widenClientFileUpload: true,
|
|
369
|
-
},
|
|
370
|
-
)
|
|
371
|
-
: noWrapper;
|
|
372
|
-
|
|
373
|
-
export default withBundleAnalyzer(withPWA(withSentry(nextConfig) as NextConfig));
|
|
328
|
+
export default withBundleAnalyzer(withPWA(nextConfig as NextConfig));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.128.
|
|
3
|
+
"version": "1.128.10",
|
|
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",
|
|
@@ -167,7 +167,6 @@
|
|
|
167
167
|
"@neondatabase/serverless": "^1.0.1",
|
|
168
168
|
"@next/third-parties": "^15.5.3",
|
|
169
169
|
"@react-spring/web": "^9.7.5",
|
|
170
|
-
"@sentry/nextjs": "^7.120.4",
|
|
171
170
|
"@serwist/next": "^9.2.1",
|
|
172
171
|
"@t3-oss/env-nextjs": "^0.13.8",
|
|
173
172
|
"@tanstack/react-query": "^5.87.4",
|
|
@@ -21,7 +21,7 @@ export const FORM_STYLE: FormProps = {
|
|
|
21
21
|
style: { maxWidth: MAX_WIDTH, width: '100%' },
|
|
22
22
|
};
|
|
23
23
|
export const MOBILE_HEADER_ICON_SIZE: ActionIconProps['size'] = { blockSize: 36, size: 22 };
|
|
24
|
-
export const DESKTOP_HEADER_ICON_SIZE: ActionIconProps['size'] = { blockSize:
|
|
24
|
+
export const DESKTOP_HEADER_ICON_SIZE: ActionIconProps['size'] = { blockSize: 32, size: 20 };
|
|
25
25
|
export const HEADER_ICON_SIZE = (mobile?: boolean) =>
|
|
26
26
|
mobile ? MOBILE_HEADER_ICON_SIZE : DESKTOP_HEADER_ICON_SIZE;
|
|
27
27
|
export const PWA_INSTALL_ID = 'pwa-install';
|
|
@@ -9,6 +9,7 @@ export abstract class BaseProcessor implements ContextProcessor {
|
|
|
9
9
|
abstract readonly name: string;
|
|
10
10
|
|
|
11
11
|
// 为了兼容现有子类构造函数签名,保留参数但不做任何处理
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
13
|
constructor(_options: ProcessorOptions = {}) {}
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -69,8 +70,8 @@ export abstract class BaseProcessor implements ContextProcessor {
|
|
|
69
70
|
protected abort(context: PipelineContext, reason: string): PipelineContext {
|
|
70
71
|
return {
|
|
71
72
|
...context,
|
|
72
|
-
isAborted: true,
|
|
73
73
|
abortReason: reason,
|
|
74
|
+
isAborted: true,
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
-- 将超过 1000 字符的 description 截断为 1000 字符
|
|
2
|
+
UPDATE agents
|
|
3
|
+
SET description = LEFT(description, 1000)
|
|
4
|
+
WHERE LENGTH(description) > 1000;--> statement-breakpoint
|
|
5
|
+
CREATE INDEX IF NOT EXISTS "agents_title_idx" ON "agents" USING btree ("title");--> statement-breakpoint
|
|
6
|
+
CREATE INDEX IF NOT EXISTS "agents_description_idx" ON "agents" USING btree ("description");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
-- 将超过 255 字符的 title 截断为 255 字符
|
|
2
|
+
UPDATE agents
|
|
3
|
+
SET title = LEFT(title, 255)
|
|
4
|
+
WHERE LENGTH(title) > 255;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "agents" ALTER COLUMN "title" SET DATA TYPE varchar(255);--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "agents" ALTER COLUMN "description" SET DATA TYPE varchar(1000);
|