912 Commits

Author SHA1 Message Date
yangdx
7b07d4c917 feat: 支持 LiteLLM 客户端的 application/octet-stream 请求
修改 Ollama API 路由处理程序,使 /chat 和 /generate 端点能够接受 Content-Type 为 application/octet-stream 的请求。通过绕过 FastAPI 的自动请求验证机制,手动解析请求体,解决了 LiteLLM 客户端连接时出现的 422 错误。此更改保持了对现有 application/json 请求的向后兼容性。
2025-06-11 13:42:30 +08:00
yangdx
ad81e59d9a Fix logger problem 2025-06-11 13:30:45 +08:00
yangdx
1575c7a5f4 Update webui assets 2025-06-02 18:11:04 +08:00
yangdx
ca3ae05356 Update webui assets 2025-06-02 17:46:22 +08:00
yangdx
66e4109cff Bump api version to 0172 2025-06-02 17:44:44 +08:00
yangdx
070a5db801 Update README 2025-05-23 12:50:48 +08:00
yangdx
e14c69ce4a Merge branch 'belabon25/main' 2025-05-22 10:06:52 +08:00
yangdx
a6046bf827 Fix linting 2025-05-22 10:06:09 +08:00
yangdx
bb27bb4309 Fix linting 2025-05-22 09:59:53 +08:00
Benjamin L
1b6ddcaf5b change validator method names 2025-05-21 16:06:35 +02:00
Benjamin L
62b536ea6f Adding file_source.s as optional attribute to text.s requests 2025-05-21 15:10:27 +02:00
yumpyy
4d806a1263
feat(api): update endpoint to support new parameter
Update the API server to support the new parameter from the core library (PR #1032).
2025-05-21 15:50:05 +05:30
yangdx
702e87492c Bump api version to 0171 2025-05-21 16:52:33 +08:00
yangdx
85bed30764 Fix linting 2025-05-21 16:46:36 +08:00
yangdx
45cebc71c5 Refactor: Optimize static file caching for WebUI
- Renamed `NoCacheStaticFiles` to `SmartStaticFiles`.
- Implemented long-term caching (1 year, immutable) for versioned assets in `/webui/assets/`.
- Ensured `index.html` remains un-cached.
- Set correct `Content-Type` for JS and CSS files.
2025-05-21 16:46:18 +08:00
yangdx
0961a21722 Set correct Content-Type header for JavaScript files
• Fix missing Content-Type header for .js files
• Ensure proper MIME type handling
• Improve browser compatibility
2025-05-21 16:17:42 +08:00
yangdx
c41f8d9ed3 Update README 2025-05-16 09:05:50 +08:00
yangdx
e5b0807298 Update README 2025-05-15 17:36:45 +08:00
yangdx
b9c25dfeb0 Update README 2025-05-14 14:42:52 +08:00
yangdx
db125c3764 Update README 2025-05-14 11:29:46 +08:00
yangdx
55e28f45e4 Updage logo 2025-05-13 20:35:35 +08:00
yangdx
d0029b5b53 Update favicon.png 2025-05-12 20:02:03 +08:00
yangdx
85ac94bae0 Update icon.svg 2025-05-12 19:47:35 +08:00
yangdx
00b78b91d6 Change website icon 2025-05-12 19:14:02 +08:00
yangdx
cbc8796bb0 Update logo from png to svg 2025-05-12 18:49:58 +08:00
yangdx
dfc44ec4be Update logo.png 2025-05-12 18:21:52 +08:00
yangdx
c36d499a43 Update webui assets 2025-05-11 12:44:50 +08:00
yangdx
d5b9318553 Bump api version to 0170 2025-05-11 11:51:53 +08:00
yangdx
4d57370c94 Refactor: Move get_env_value from api.config to utils
Relocates the `get_env_value` utility function
from `lightrag.api.config` to `lightrag.utils` to decouple
LightRAG core from API Server
2025-05-10 08:58:18 +08:00
yangdx
8145b436c8 Fix linting 2025-05-09 11:52:10 +08:00
yangdx
0751382e65 Update README.md 2025-05-09 11:51:22 +08:00
yangdx
fb4f12ba8e Add user prompt support for Ollama api 2025-05-09 11:37:43 +08:00
yangdx
45d4db1eff Update webui assets 2025-05-08 04:18:19 +08:00
yangdx
d914de441e Add user_prompt to WebUI 2025-05-08 04:15:21 +08:00
yangdx
147f73002d Remove ll-keywords and hl-keywords from WebUI 2025-05-07 19:07:31 +08:00
yangdx
ee420f135a Bump api version to 0168 2025-05-07 04:37:20 +08:00
yangdx
217d80bfd8 Update webui assets 2025-05-07 04:36:48 +08:00
yangdx
0e3e936e1a Bump api version to 0167 2025-05-07 01:52:29 +08:00
yangdx
c8ecfa2d68 feat: Centralize configuration and update defaults
This commit introduces `lightrag/constants.py` to centralize default values for various configurations across the API and core components.

Key changes:
- Added `constants.py` to centralize default values
- Improved the `get_env_value` function in `api/config.py` to correctly handle string "None" as a None value and to catch `TypeError` during value conversion.
- Updated the default `SUMMARY_LANGUAGE` to "English"
- Set default `WORKERS` to 2
2025-05-06 22:00:43 +08:00
yangdx
8c08743058 Update webui assets 2025-05-05 00:17:35 +08:00
yangdx
3bc240263d Bump api version to 0166 2025-05-04 23:27:40 +08:00
yangdx
8f8476b834 Update webui assets 2025-05-04 23:25:52 +08:00
yangdx
36f8787bc7 Fix linting 2025-05-01 10:04:31 +08:00
yangdx
a561be0cff Fix time zone problem of doc status 2025-05-01 02:16:19 +08:00
yangdx
b1ace9da53 Remove updated document 2025-04-30 10:26:54 +08:00
yangdx
c84ce37c60 Update webui assets 2025-04-29 19:19:42 +08:00
yangdx
c153aa697c Update webui assets 2025-04-29 02:37:50 +08:00
yangdx
4f523366aa Fix browse compatible problem for crypto.randomUUID 2025-04-29 02:37:05 +08:00
yangdx
971cc72193 Update webui assets 2025-04-28 20:42:35 +08:00
yangdx
25d0a9a1bf Bump api version to 0164 2025-04-28 20:31:09 +08:00