@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.
@@ -21,9 +21,6 @@ jobs:
21
21
  - name: Install deps
22
22
  run: bun i
23
23
 
24
- - name: Check dbdocs
25
- run: dbdocs
26
-
27
24
  - name: sync database schema to dbdocs
28
25
  env:
29
26
  DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix azure ai runtime error."
6
+ ]
7
+ },
8
+ "date": "2025-09-16",
9
+ "version": "1.128.10"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
@@ -1,8 +1,8 @@
1
1
  table agents {
2
2
  id text [pk, not null]
3
3
  slug varchar(100) [unique]
4
- title text
5
- description text
4
+ title varchar(255)
5
+ description varchar(1000)
6
6
  tags jsonb [default: `[]`]
7
7
  avatar text
8
8
  background_color text
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
- const hasSentry = !!process.env.NEXT_PUBLIC_SENTRY_DSN;
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.9",
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",
@@ -27,7 +27,7 @@ async function* openaiRuntime(payload: any) {
27
27
 
28
28
  if (delta?.content) {
29
29
  content += delta.content;
30
- yield { content: delta.content };
30
+ yield { content };
31
31
  }
32
32
 
33
33
  if (delta?.tool_calls) {
@@ -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: 36, size: 22 };
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
- CREATE INDEX "agents_title_idx" ON "agents" USING btree ("title");--> statement-breakpoint
2
- CREATE INDEX "agents_description_idx" ON "agents" USING btree ("description");
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);