mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-15 12:10:16 +00:00
♻️ refactor: clean code
This commit is contained in:
-9
@@ -12,7 +12,6 @@
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"searchMode": "off",
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"searchFCModel": {
|
||||
"model": "gpt-4o-mini",
|
||||
@@ -57,7 +56,6 @@
|
||||
"backgroundColor": null,
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -96,7 +94,6 @@
|
||||
"backgroundColor": "rgba(0,0,0,0)",
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -135,7 +132,6 @@
|
||||
"backgroundColor": "rgba(0,0,0,0)",
|
||||
"plugins": ["web_search"],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -174,7 +170,6 @@
|
||||
"backgroundColor": null,
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -213,7 +208,6 @@
|
||||
"backgroundColor": "rgba(0,0,0,0)",
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -252,7 +246,6 @@
|
||||
"backgroundColor": null,
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -291,7 +284,6 @@
|
||||
"backgroundColor": null,
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -330,7 +322,6 @@
|
||||
"backgroundColor": null,
|
||||
"plugins": [],
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
|
||||
-10
@@ -80,7 +80,6 @@
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"searchMode": "off",
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"searchFCModel": {
|
||||
"model": "gpt-4o-mini",
|
||||
@@ -126,7 +125,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -166,7 +164,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -206,7 +203,6 @@
|
||||
"plugins": ["web_search"],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -246,7 +242,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -286,7 +281,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": false,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -326,7 +320,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -366,7 +359,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -406,7 +398,6 @@
|
||||
"plugins": [],
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"enableHistoryCount": true,
|
||||
"enableAutoCreateTopic": true,
|
||||
@@ -447,7 +438,6 @@
|
||||
"clientId": null,
|
||||
"chatConfig": {
|
||||
"searchMode": "off",
|
||||
"displayMode": "chat",
|
||||
"historyCount": 8,
|
||||
"searchFCModel": {
|
||||
"model": "gpt-4o-mini",
|
||||
|
||||
-15
@@ -483,7 +483,6 @@
|
||||
"provider": "anthropic",
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -521,7 +520,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -559,7 +557,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -608,7 +605,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -646,7 +642,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -684,7 +679,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -722,7 +716,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -766,7 +759,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -814,7 +806,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -852,7 +843,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -890,7 +880,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -930,7 +919,6 @@
|
||||
"openingQuestions": ["Question 1", "Question 2"],
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -968,7 +956,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -1006,7 +993,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
@@ -1044,7 +1030,6 @@
|
||||
},
|
||||
"chatConfig": {
|
||||
"autoCreateTopicThreshold": 2,
|
||||
"displayMode": "chat",
|
||||
"enableAutoCreateTopic": true,
|
||||
"historyCount": 1
|
||||
}
|
||||
|
||||
@@ -886,7 +886,6 @@ describe('DataImporter', () => {
|
||||
},
|
||||
chatConfig: {
|
||||
autoCreateTopicThreshold: 2,
|
||||
displayMode: 'chat',
|
||||
enableAutoCreateTopic: true,
|
||||
historyCount: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user