Commit graph

39 commits

Author SHA1 Message Date
Shinji-Li
c09f2474db
🔨 chore: add source type into user_install_plugins (#10603)
* chore: add source type into user_install_plugins

* fix: change the source type into varchar
2025-12-04 18:14:21 +08:00
Neko
d15c845213
feat(database): topic metadata for user memory extractor (#10569) 2025-12-03 19:14:29 +08:00
Arvin Xu
0d609d199a
♻️ refactor: refactor agent slug schema (#10561)
* fix agent schema

* fix snapshot
2025-12-02 23:23:42 +08:00
YuTengjing
2ab88c5dcf
🐛 fix: drop user.phoneNumber and reuse user.phone (#10531) 2025-12-01 19:00:29 +08:00
YuTengjing
3be78f04e8
feat: integrate better-auth admin plugin (#10512) 2025-12-01 17:16:06 +08:00
Arvin Xu
dff82f4093
🔨 chore: update topic and message db (#10511)
* update topic and message db

* fix tests
2025-11-30 19:37:57 +08:00
Shinji-Li
1674cc94f2
🔨 chore: add market into userSettings & save the oidc token into db (#10481)
* feat: add market into userSettings & save the oidc token into db

* fix: update migrations
2025-11-28 23:19:42 +08:00
Arvin Xu
69898185f3
♻️ refactor: refactor thread table and nextauth userId (#10475)
push update
2025-11-28 13:50:43 +08:00
YuTengjing
dc62cc969d
feat: support better-auth (#10215) 2025-11-27 20:10:40 +08:00
Shinji-Li
3f95d1c34a
🔨 chore: add editor_data in agents db (#10448)
* feat: add editor_data in agents db

* fix: add if exists sql

* fix: change the schema
2025-11-27 13:09:05 +08:00
Arvin Xu
760105adb2
🐛 fix: fix db migration snapshot not align with db schema (#10399)
* fix db sql

* clean
2025-11-24 21:15:25 +08:00
René Wang
eea41dcb82
👷 build: Add slug to documents table (#10299)
* feat: Add SLUG

* fix: CI

* feat: Update constairnt

* fix: Remove slug from files

* fix: Test error
2025-11-21 17:56:08 +08:00
René Wang
10e44dfb6b
👷 build: Update schema for incoming folder (#10217)
* feat: Update schema

* fix: Circular deps

* feat: Add more validate

* fix: Vercel build error

* fix: Duplicated import

* fix: Circular deps

* feat: Set varchar from 30 to 255

* feat: Regenerate migration file

* feat: Regenerate migration

* feat: Regenerate migration
2025-11-18 16:42:13 +08:00
Arvin Xu
656a33359b
👷 build: add intervention tool column (#10163)
* add intervention tool

* update sql
2025-11-12 10:25:03 +08:00
Shinji-Li
a15eda7fbf
🔨 chore: add market_identifier into agents table schema (#10164)
chore: add market_identifier into agents table schema
2025-11-11 22:37:47 +08:00
sxjeru
7e1dd02d7c
♻️ refactor: add settings (jsonb) column to ai_models table (#10042)
* Refactor code structure for improved readability and maintainability

* edit dbml

* feat: 更新 AiInfraRepos 以支持用户设置覆盖内置设置

* Revert "Refactor code structure for improved readability and maintainability"

This reverts commit 81453d8dc3.

* Refactor code structure for improved readability and maintainability

* 添加 IF NOT EXISTS 选项以避免重复列添加

* format
2025-11-04 21:02:40 +08:00
Arvin Xu
0d8188c60b
️ perf: improve db query performance (#10036)
* improve db query performance

* Remove query timing log from hasMoreThanN

Removed timing log from hasMoreThanN method.
2025-11-04 14:29:11 +08:00
Arvin Xu
8abfdecd54
️ perf: improve db query performance (#9946)
* fix db performance issue

* fix tests
2025-10-31 12:39:59 +08:00
Neko
6c5caf9184
👷 build(database): improve user memory schema (#9822)
chore(database): improve user memory schema
2025-10-28 15:50:15 +08:00
René Wang
bf53c116dd
👷 build: Add editorData column on document table (#9899)
feat: Add rawData column
2025-10-27 17:12:55 +08:00
YuTengjing
de7368bc25
feat: add new setting for default image num (#9618) 2025-10-12 23:56:17 +08:00
Neko
23d61aebc9
🔨 chore(database): add user memory db schemas (#9371)
*  feat(database): user memory db schemas

* feat: migrations

* fix: id

* fix: syntax id

* update

* revert

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-10-10 17:41:14 +08:00
Arvin Xu
af274190a8
🔨 chore: add group-messages database schema (#9543)
* add group messages

* update

* add migrations

* ♻️ refactor: refactor message group

* fix

* fix

* update schema
2025-10-05 23:49:27 +08:00
René Wang
b0cb96e5c2
👷 build: Add virtual column to agent table (#9464) 2025-09-29 10:07:19 +02:00
Arvin Xu
273e0277d1
🔨 chore: pre-merge group chat relative implement (#9432)
* pre-merge code

* fix tests

* fix circular

* remove redirectUri

* fix types

* improve sql

* fix docs

* fix lint

* update model runtime
2025-09-26 03:47:25 +08:00
Arvin Xu
cee555a0f0
♻️ refactor: improve db sql performance (#9283)
* improve sql

* improve db index

* improve db index

* improve db index
2025-09-16 19:33:35 +08:00
Arvin Xu
c21c14e715
🐛 fix: fix azure ai runtime error (#9276)
* fix azure ai

* improve agent schema

* improve agent schema

* improve header size

* remove sentry

* remove sentry

* fix

* clean

* fix tests
2025-09-16 15:19:55 +08:00
Arvin Xu
b73d0972b2
️ perf: fix search agent slow (#9261)
* try to fix search agent issue

* Update session.ts
2025-09-15 10:56:03 +08:00
René Wang
17472aa7a5
👷 build: add group chat db schema (#8916)
* feat: merge database changes from group-chat feature

* fix

* fix

* fix

* fix tests

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
2025-08-27 23:49:22 +08:00
Arvin Xu
8dedc2d3e1
♻️ refactor: move utils to separate package (#8889)
* move utils

* move utils

* move utils

* update

* update

* update

* update

* update

* refactor to clean the tests

* fix release workflow

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* try to fix client db migration issue

* fix tests
2025-08-22 14:05:01 +08:00
Arvin Xu
054ca5fd97
feat: refactor desktop oauth and use JWTs token to support remote chat (#8446)
* refactor the oauth

* refactor the oauth

* refactor the oauth

* improve oauth status

* fix desktop auth

* fix tests

* improve clean handoff

* try to fix handoff public issue

* fix route protection

* refactor anim

* refactor

* update to access token to jwt

* update to access token to jwt

* improve config

* refactor for JWKs token

* fix auto refresh issue

*  feat: support webapi proxy

* wip: 完成新流式接口

* wip: 跑通流式框架

* fix webhooks

* fix network proxy

* try to fix workflow

* fix proxy in remote sync

* fix tests

* fix tests

* fix oauth bypass route

* fix webapi proxy
2025-07-17 12:54:37 +08:00
YuTengjing
095de57675
feat: support AI Image (#8312)
Co-authored-by: canisminor1990 <i@canisminor.cc>
2025-07-14 20:29:57 +08:00
Arvin Xu
5bf0921246
feat: support OpenAI Responses API mode (#8048)
*  feat: support response api mode

* update

* support openai stream o series thinking

* add ui config for response api mode

* improve ui config for responses api mode

* update locale

* fix tests

* fix update issue

* update db schema

* fix openai Response Inputs

* fix tests
2025-06-08 16:53:46 +08:00
Arvin Xu
39b790ec37
feat: support upload files direct into chat context (#7751)
* add document service

* add file item

* add file content for direct upload file

* fix tests

* fix tests

* fix tests

* add debug log for file-loaders

* add debug log and test

* improve loading

* update tests

* fix pdf parser

* fix pdf version

* fix pdf worker url

* fix pdf worker url

* fix test
2025-05-10 00:58:39 +08:00
YuTengjing
961d6a1673 feat: regenerate migrate sql for new agent opening settings 2025-04-14 12:02:10 +08:00
YuTengjing
6002e823e2 Merge branch 'main' of github.com:lobehub/lobe-chat into tj/feat/guide-message 2025-04-14 11:34:06 +08:00
Arvin Xu
b12b24018e
🔨 chore: add OAuth 2.0 and OIDC core implement (#7380)
* add oidc implement

* add oidc implement

* update

* update

* migration db

* improve

* improve scripts

* update

* 解决 auth 302 跳转的问题

* 完成 policy 实现调试

* improve middleware log

* 初步完成 auth 授权实现

* 初步完成 auth 授权实现

* fix adapter

* add adapter tests

* refactor with http adapter

* refactor for oidc service

* finish oauth 授权基础实现

* 区分 backend 入口与 client 页面入口

* add i18n

* update db schema

* fix lint

* improve

* fix tests and update i18n

* improve db adaptor

* fix tests

* fix tests

* fix tests
2025-04-13 00:49:31 +08:00
YuTengjing
a614e3e53d feat: agent opening settings 2025-04-12 10:29:09 +08:00
YuTengjing
2e763f808c ♻️ chore: update database schema docs path from developer to development 2025-04-09 20:14:57 +08:00
Renamed from docs/developer/database-schema.dbml (Browse further)