@lobehub/chat 1.68.2 → 1.68.3
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/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.68.3](https://github.com/lobehub/lobe-chat/compare/v1.68.2...v1.68.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-03-03**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Improve url rules.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Improve url rules, closes [#6669](https://github.com/lobehub/lobe-chat/issues/6669) ([5ee59e3](https://github.com/lobehub/lobe-chat/commit/5ee59e3))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.68.2](https://github.com/lobehub/lobe-chat/compare/v1.68.1...v1.68.2)
|
6
31
|
|
7
32
|
<sup>Released on **2025-03-03**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.68.
|
3
|
+
"version": "1.68.3",
|
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",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CrawlImpl } from '../type';
|
2
2
|
|
3
3
|
export const jina: CrawlImpl<{ apiKey?: string }> = async (url, params) => {
|
4
|
-
const token = params.apiKey ?? process.env.JINA_API_KEY;
|
4
|
+
const token = params.apiKey ?? process.env.JINA_READER_API_KEY ?? process.env.JINA_API_KEY;
|
5
5
|
|
6
6
|
try {
|
7
7
|
const res = await fetch(`https://r.jina.ai/${url}`, {
|
@@ -37,7 +37,13 @@ export const crawUrlRules: CrawlUrlRule[] = [
|
|
37
37
|
urlPattern: 'https://medium.com/(.*)',
|
38
38
|
urlTransform: 'https://scribe.rip/$1',
|
39
39
|
},
|
40
|
-
|
40
|
+
{
|
41
|
+
filterOptions: {
|
42
|
+
enableReadability: false,
|
43
|
+
},
|
44
|
+
impls: ['jina', 'browserless'],
|
45
|
+
urlPattern: 'https://(twitter.com|x.com)/(.*)',
|
46
|
+
},
|
41
47
|
// 体育数据网站规则
|
42
48
|
{
|
43
49
|
filterOptions: {
|