@lobehub/chat 0.151.2 → 0.151.4
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 +50 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/app/{chat → (main)/chat}/(desktop)/features/SideBar/index.tsx +2 -1
- package/src/app/{chat → (main)/chat}/settings/(desktop)/Header.tsx +1 -1
- package/src/app/{market → (main)/market}/features/TagList/index.tsx +1 -1
- package/src/app/{settings → (main)/settings}/about/Analytics.tsx +2 -1
- package/src/app/{settings → (main)/settings}/common/Common.tsx +1 -1
- package/src/app/{settings → (main)/settings}/common/Theme.tsx +1 -1
- package/src/app/{settings → (main)/settings}/llm/components/ProviderConfig/index.tsx +2 -2
- package/src/app/{settings → (main)/settings}/sync/WebRTC/ChannelNameInput.tsx +1 -1
- package/src/app/{welcome → (main)/welcome}/(desktop)/features/Showcase.tsx +1 -1
- package/src/app/{welcome → (main)/welcome}/(mobile)/index.tsx +1 -1
- package/src/app/page.tsx +11 -9
- package/src/config/modelProviders/anthropic.ts +1 -1
- package/src/config/modelProviders/azure.ts +1 -0
- package/src/config/modelProviders/bedrock.ts +2 -2
- package/src/config/modelProviders/google.ts +9 -7
- package/src/config/modelProviders/groq.ts +0 -1
- package/src/config/modelProviders/minimax.ts +15 -0
- package/src/config/modelProviders/mistral.ts +1 -1
- package/src/config/modelProviders/moonshot.ts +1 -0
- package/src/config/modelProviders/ollama.ts +21 -21
- package/src/config/modelProviders/openai.ts +1 -1
- package/src/config/modelProviders/togetherai.ts +1 -1
- package/src/config/modelProviders/zeroone.ts +4 -3
- package/src/config/modelProviders/zhipu.ts +4 -2
- package/src/migrations/FromV3ToV4/fixtures/ollama-output-v4.json +1 -1
- package/src/store/user/slices/settings/actions/llm.test.ts +1 -1
- package/src/types/llm.ts +1 -1
- /package/src/app/{home/index.tsx → (loading)/Client.tsx} +0 -0
- /package/src/app/{home → (loading)}/Redirect.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatHeader/HeaderAction.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatHeader/Main.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatHeader/Tags.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatHeader/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/Footer/DragUpload.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/Footer/LocalFiles.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/Footer/SendMore.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/Footer/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/Header/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/TextArea.test.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/TextArea.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/__tests__/useAutoFocus.test.ts +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/ChatInput/useAutoFocus.ts +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/Conversation.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/HotKeys.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/SideBar/SystemRole/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/features/SideBar/SystemRole/style.ts +0 -0
- /package/src/app/{chat → (main)/chat}/(desktop)/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/features/ChatInput/Files.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/features/ChatInput/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/features/SessionHeader.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/features/SessionList.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/features/TopicList.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/mobile/ChatHeader/ChatHeaderTitle.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/mobile/ChatHeader/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/(mobile)/mobile/page.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/_layout/Desktop/SessionHeader.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/_layout/Desktop/SessionList.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/_layout/Desktop/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/_layout/Mobile/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/components/SessionHydration/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/components/SidebarHeader/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/ExportConfigButton.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/Failed.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/Modal.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/Start.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/UpgradeButton.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/const.ts +0 -0
- /package/src/app/{chat → (main)/chat}/features/Migration/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/PageTitle/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/PluginTag/PluginStatus.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/PluginTag/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/CollapseGroup/Actions.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/CollapseGroup/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/DefaultMode.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/Inbox/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/List/AddButton.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/List/Item/Actions.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/List/Item/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/List/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/ListItem/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/Modals/ConfigGroupModal/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/Modals/CreateGroupModal.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/Modals/RenameGroupModal.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/SearchMode.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/SkeletonList.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionListContent/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SessionSearchBar/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/SettingButton.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/Preview.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/ShareModal.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/style.ts +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/type.ts +0 -0
- /package/src/app/{chat → (main)/chat}/features/ShareButton/useScreenshot.ts +0 -0
- /package/src/app/{chat → (main)/chat}/features/TelemetryNotification/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Header.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Topic/DefaultContent.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Topic/SkeletonList.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Topic/TopicContent.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Topic/TopicItem.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/Topic/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/TopicSearchBar/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/features/TopicListContent/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/layout.ts +0 -0
- /package/src/app/{chat → (main)/chat}/page.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/(desktop)/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/(mobile)/Header.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/(mobile)/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/features/EditPage.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/features/HeaderContent.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/features/SubmitAgentButton/index.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/features/SubmitAgentButton/style.ts +0 -0
- /package/src/app/{chat → (main)/chat}/settings/layout.tsx +0 -0
- /package/src/app/{chat → (main)/chat}/settings/page.tsx +0 -0
- /package/src/app/{market → (main)/market}/(desktop)/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/(mobile)/features/AgentCard.tsx +0 -0
- /package/src/app/{market → (main)/market}/(mobile)/features/AgentDetail.tsx +0 -0
- /package/src/app/{market → (main)/market}/(mobile)/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/_layout/Desktop/AgentDetail.tsx +0 -0
- /package/src/app/{market → (main)/market}/_layout/Desktop/Header.tsx +0 -0
- /package/src/app/{market → (main)/market}/_layout/Desktop/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/_layout/Mobile/Header.tsx +0 -0
- /package/src/app/{market → (main)/market}/_layout/Mobile/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/components/Loading.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentCard/AgentCardBanner.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentCard/AgentCardItem.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentCard/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentCard/style.ts +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/Comment.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/Header.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/Loading.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/TokenTag.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/AgentInfo/style.ts +0 -0
- /package/src/app/{market → (main)/market}/features/AgentDetailContent/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/AgentSearchBar/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/PageTitle/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/ShareAgentButton/Inner.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/ShareAgentButton/index.tsx +0 -0
- /package/src/app/{market → (main)/market}/features/TagList/Inner.tsx +0 -0
- /package/src/app/{market → (main)/market}/layout.ts +0 -0
- /package/src/app/{market → (main)/market}/loading.tsx +0 -0
- /package/src/app/{market → (main)/market}/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/(desktop)/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/(mobile)/features/AvatarBanner.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/(mobile)/features/ExtraList.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/(mobile)/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/_layout/Desktop/Header.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/_layout/Desktop/SideBar.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/_layout/Desktop/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/_layout/Mobile/SubSettingHeader.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/_layout/Mobile/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/about/AboutList.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/about/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/about/style.ts +0 -0
- /package/src/app/{settings → (main)/settings}/agent/Agent.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/agent/loading.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/agent/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/common/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/common/loading.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/common/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/Footer.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/SettingList/Item.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/SettingList/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/ThemeSwatches/ThemeSwatchesNeutral.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/ThemeSwatches/ThemeSwatchesPrimary.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/features/ThemeSwatches/index.ts +0 -0
- /package/src/app/{settings → (main)/settings}/features/UpgradeAlert.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/hooks/useSyncSettings.ts +0 -0
- /package/src/app/{settings → (main)/settings}/layout.ts +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Anthropic/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Azure/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Bedrock/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Google/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Groq/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Minimax/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Mistral/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Moonshot/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Ollama/Checker.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Ollama/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/OpenAI/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/OpenRouter/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Perplexity/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/TogetherAI/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/ZeroOne/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/Zhipu/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/Checker.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/CustomModelOption.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/MaxTokenSlider.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/ModelConfigModal.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/ModelFetcher.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/Option.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/components/ProviderModelList/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/const.ts +0 -0
- /package/src/app/{settings → (main)/settings}/llm/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/layout.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/loading.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/llm/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/Alert.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/DeviceInfo/Card.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/DeviceInfo/DeviceName.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/DeviceInfo/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/PageTitle.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/WebRTC/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/components/SyncSwitch/index.css +0 -0
- /package/src/app/{settings → (main)/settings}/sync/components/SyncSwitch/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/components/SystemIcon.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/layout.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/loading.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/page.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/sync/util.ts +0 -0
- /package/src/app/{settings → (main)/settings}/tts/TTS/index.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/tts/TTS/options.ts +0 -0
- /package/src/app/{settings → (main)/settings}/tts/loading.tsx +0 -0
- /package/src/app/{settings → (main)/settings}/tts/page.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/(desktop)/features/Footer.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/(desktop)/index.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/_layout/Desktop.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/_layout/Mobile.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/features/Banner/AgentCard.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/features/Banner/AgentTemplate.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/features/Banner/Hero.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/features/Banner/index.tsx +0 -0
- /package/src/app/{welcome → (main)/welcome}/features/Banner/style.ts +0 -0
- /package/src/app/{welcome → (main)/welcome}/layout.ts +0 -0
- /package/src/app/{welcome → (main)/welcome}/page.tsx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.151.4](https://github.com/lobehub/lobe-chat/compare/v0.151.3...v0.151.4)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-04-29**</sup>
|
|
8
|
+
|
|
9
|
+
#### ♻ Code Refactoring
|
|
10
|
+
|
|
11
|
+
- **misc**: Move app page to the `(main)` layout group.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Code refactoring
|
|
19
|
+
|
|
20
|
+
- **misc**: Move app page to the `(main)` layout group, closes [#2297](https://github.com/lobehub/lobe-chat/issues/2297) ([6cc2c38](https://github.com/lobehub/lobe-chat/commit/6cc2c38))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.151.3](https://github.com/lobehub/lobe-chat/compare/v0.151.2...v0.151.3)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-04-29**</sup>
|
|
33
|
+
|
|
34
|
+
#### 💄 Styles
|
|
35
|
+
|
|
36
|
+
- **misc**: Patching models info.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Styles
|
|
44
|
+
|
|
45
|
+
- **misc**: Patching models info, closes [#2269](https://github.com/lobehub/lobe-chat/issues/2269) [#22802280](https://github.com/lobehub/lobe-chat/issues/22802280) ([03bcb06](https://github.com/lobehub/lobe-chat/commit/03bcb06))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.151.2](https://github.com/lobehub/lobe-chat/compare/v0.151.1...v0.151.2)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-04-29**</sup>
|
package/README.md
CHANGED
|
@@ -626,7 +626,7 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
|
|
|
626
626
|
|
|
627
627
|
</details>
|
|
628
628
|
|
|
629
|
-
Copyright ©
|
|
629
|
+
Copyright © 2024 [LobeHub][profile-link]. <br />
|
|
630
630
|
This project is [MIT](./LICENSE) licensed.
|
|
631
631
|
|
|
632
632
|
<!-- LINK GROUP -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.151.
|
|
3
|
+
"version": "0.151.4",
|
|
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",
|
|
@@ -3,7 +3,6 @@ import { createStyles } from 'antd-style';
|
|
|
3
3
|
import dynamic from 'next/dynamic';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
|
|
6
|
-
import TopicListContent from '@/app/chat/features/TopicListContent';
|
|
7
6
|
import SafeSpacing from '@/components/SafeSpacing';
|
|
8
7
|
import { CHAT_SIDEBAR_WIDTH } from '@/const/layoutTokens';
|
|
9
8
|
import { useGlobalStore } from '@/store/global';
|
|
@@ -11,6 +10,8 @@ import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfi
|
|
|
11
10
|
import { useSessionStore } from '@/store/session';
|
|
12
11
|
import { sessionSelectors } from '@/store/session/selectors';
|
|
13
12
|
|
|
13
|
+
import TopicListContent from '../../../features/TopicListContent';
|
|
14
|
+
|
|
14
15
|
const SystemRole = dynamic(() => import('./SystemRole'));
|
|
15
16
|
|
|
16
17
|
const useStyles = createStyles(({ css, token }) => ({
|
|
@@ -3,7 +3,7 @@ import { useRouter } from 'next/navigation';
|
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
|
|
6
|
-
import HeaderContent from '@/app/chat/settings/features/HeaderContent';
|
|
6
|
+
import HeaderContent from '@/app/(main)/chat/settings/features/HeaderContent';
|
|
7
7
|
import { pathString } from '@/utils/url';
|
|
8
8
|
|
|
9
9
|
const Header = memo(() => {
|
|
@@ -3,10 +3,11 @@ import { memo } from 'react';
|
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { Flexbox } from 'react-layout-kit';
|
|
5
5
|
|
|
6
|
-
import { useStyles } from '@/app/settings/about/style';
|
|
7
6
|
import { useUserStore } from '@/store/user';
|
|
8
7
|
import { preferenceSelectors } from '@/store/user/selectors';
|
|
9
8
|
|
|
9
|
+
import { useStyles } from './style';
|
|
10
|
+
|
|
10
11
|
const Analytics = memo(() => {
|
|
11
12
|
const { t } = useTranslation('setting');
|
|
12
13
|
const { styles } = useStyles();
|
|
@@ -6,7 +6,7 @@ import { signIn, signOut } from 'next-auth/react';
|
|
|
6
6
|
import { memo, useCallback } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
|
|
9
|
-
import { useSyncSettings } from '@/app/settings/hooks/useSyncSettings';
|
|
9
|
+
import { useSyncSettings } from '@/app/(main)/settings/hooks/useSyncSettings';
|
|
10
10
|
import { FORM_STYLE } from '@/const/layoutTokens';
|
|
11
11
|
import { DEFAULT_SETTINGS } from '@/const/settings';
|
|
12
12
|
import { useOAuthSession } from '@/hooks/useOAuthSession';
|
|
@@ -5,7 +5,7 @@ import { Monitor, Moon, Palette, Sun } from 'lucide-react';
|
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
|
|
8
|
-
import { useSyncSettings } from '@/app/settings/hooks/useSyncSettings';
|
|
8
|
+
import { useSyncSettings } from '@/app/(main)/settings/hooks/useSyncSettings';
|
|
9
9
|
import { FORM_STYLE } from '@/const/layoutTokens';
|
|
10
10
|
import { imageUrl } from '@/const/url';
|
|
11
11
|
import AvatarWithUpload from '@/features/AvatarWithUpload';
|
|
@@ -4,13 +4,13 @@ import { debounce } from 'lodash-es';
|
|
|
4
4
|
import { ReactNode, memo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
7
|
-
import { useSyncSettings } from '@/app/settings/hooks/useSyncSettings';
|
|
7
|
+
import { useSyncSettings } from '@/app/(main)/settings/hooks/useSyncSettings';
|
|
8
8
|
import {
|
|
9
9
|
LLMProviderApiTokenKey,
|
|
10
10
|
LLMProviderBaseUrlKey,
|
|
11
11
|
LLMProviderConfigKey,
|
|
12
12
|
LLMProviderModelListKey,
|
|
13
|
-
} from '@/app/settings/llm/const';
|
|
13
|
+
} from '@/app/(main)/settings/llm/const';
|
|
14
14
|
import { FORM_STYLE } from '@/const/layoutTokens';
|
|
15
15
|
import { useUserStore } from '@/store/user';
|
|
16
16
|
import { modelConfigSelectors } from '@/store/user/selectors';
|
|
@@ -5,7 +5,7 @@ import { LucideDices } from 'lucide-react';
|
|
|
5
5
|
import { memo, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
|
|
8
|
-
import { generateRandomRoomName } from '
|
|
8
|
+
import { generateRandomRoomName } from '../util';
|
|
9
9
|
|
|
10
10
|
interface ChannelNameInputProps extends Omit<InputProps, 'form'> {
|
|
11
11
|
form: FormInstance;
|
|
@@ -4,7 +4,7 @@ import { GridShowcase } from '@lobehub/ui';
|
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
|
6
6
|
|
|
7
|
-
import Banner from '@/app/welcome/features/Banner';
|
|
7
|
+
import Banner from '@/app/(main)/welcome/features/Banner';
|
|
8
8
|
|
|
9
9
|
const Showcase = memo(() => (
|
|
10
10
|
<Flexbox
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import { Center, Flexbox } from 'react-layout-kit';
|
|
3
3
|
|
|
4
|
-
import Banner from '
|
|
4
|
+
import Banner from '../features/Banner';
|
|
5
5
|
|
|
6
6
|
const Showcase = memo(() => (
|
|
7
7
|
<Flexbox align={'center'} justify={'center'} style={{ height: 'calc(100% - 44px)' }}>
|
package/src/app/page.tsx
CHANGED
|
@@ -2,17 +2,19 @@ import { Metadata } from 'next';
|
|
|
2
2
|
|
|
3
3
|
import { getCanonicalUrl } from '@/const/url';
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import Redirect from './
|
|
5
|
+
import Client from './(loading)/Client';
|
|
6
|
+
import Redirect from './(loading)/Redirect';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const Page = () => {
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<Client />
|
|
12
|
+
<Redirect />
|
|
13
|
+
</>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
14
16
|
|
|
15
|
-
export default
|
|
17
|
+
export default Page;
|
|
16
18
|
|
|
17
19
|
export const metadata: Metadata = {
|
|
18
20
|
alternates: { canonical: getCanonicalUrl('/') },
|
|
@@ -56,14 +56,14 @@ const Bedrock: ModelProviderCard = {
|
|
|
56
56
|
displayName: 'Llama 2 Chat 13B',
|
|
57
57
|
enabled: true,
|
|
58
58
|
id: 'meta.llama2-13b-chat-v1',
|
|
59
|
-
tokens:
|
|
59
|
+
tokens: 4096,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
description: 'Llama 2 Chat 70B v1,上下文大小为 4k,Llama 2 模型的对话用例优化变体。',
|
|
63
63
|
displayName: 'Llama 2 Chat 70B',
|
|
64
64
|
enabled: true,
|
|
65
65
|
id: 'meta.llama2-70b-chat-v1',
|
|
66
|
-
tokens:
|
|
66
|
+
tokens: 4096,
|
|
67
67
|
},
|
|
68
68
|
],
|
|
69
69
|
id: 'bedrock',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
3
|
// ref https://ai.google.dev/models/gemini
|
|
4
|
+
// api https://ai.google.dev/api/rest/v1beta/models/list
|
|
4
5
|
const Google: ModelProviderCard = {
|
|
5
6
|
chatModels: [
|
|
6
7
|
{
|
|
@@ -8,13 +9,14 @@ const Google: ModelProviderCard = {
|
|
|
8
9
|
displayName: 'PaLM 2 Chat (Legacy)',
|
|
9
10
|
id: 'chat-bison-001',
|
|
10
11
|
maxOutput: 1024,
|
|
12
|
+
// tokens: 4096 + 1024, // none tokens test
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
description: 'A legacy model that understands text and generates text as an output',
|
|
14
16
|
displayName: 'PaLM 2 (Legacy)',
|
|
15
17
|
id: 'text-bison-001',
|
|
16
18
|
maxOutput: 1024,
|
|
17
|
-
tokens:
|
|
19
|
+
tokens: 8196 + 1024,
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
description: 'The best model for scaling across a wide range of tasks',
|
|
@@ -22,14 +24,14 @@ const Google: ModelProviderCard = {
|
|
|
22
24
|
enabled: true,
|
|
23
25
|
id: 'gemini-pro',
|
|
24
26
|
maxOutput: 2048,
|
|
25
|
-
tokens:
|
|
27
|
+
tokens: 30_720 + 2048,
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
30
|
description: 'The best image understanding model to handle a broad range of applications',
|
|
29
31
|
displayName: 'Gemini 1.0 Pro Vision',
|
|
30
32
|
id: 'gemini-1.0-pro-vision-latest',
|
|
31
33
|
maxOutput: 4096,
|
|
32
|
-
tokens:
|
|
34
|
+
tokens: 12_288 + 4096,
|
|
33
35
|
vision: true,
|
|
34
36
|
},
|
|
35
37
|
{
|
|
@@ -38,7 +40,7 @@ const Google: ModelProviderCard = {
|
|
|
38
40
|
enabled: true,
|
|
39
41
|
id: 'gemini-pro-vision',
|
|
40
42
|
maxOutput: 4096,
|
|
41
|
-
tokens:
|
|
43
|
+
tokens: 12_288 + 4096,
|
|
42
44
|
vision: true,
|
|
43
45
|
},
|
|
44
46
|
{
|
|
@@ -47,7 +49,7 @@ const Google: ModelProviderCard = {
|
|
|
47
49
|
displayName: 'Gemini 1.0 Pro 001 (Tuning)',
|
|
48
50
|
id: 'gemini-1.0-pro-001',
|
|
49
51
|
maxOutput: 2048,
|
|
50
|
-
tokens:
|
|
52
|
+
tokens: 30_720 + 2048,
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
description:
|
|
@@ -55,7 +57,7 @@ const Google: ModelProviderCard = {
|
|
|
55
57
|
displayName: 'Gemini 1.0 Pro Latest',
|
|
56
58
|
id: 'gemini-1.0-pro-latest',
|
|
57
59
|
maxOutput: 2048,
|
|
58
|
-
tokens:
|
|
60
|
+
tokens: 30_720 + 2048,
|
|
59
61
|
},
|
|
60
62
|
{
|
|
61
63
|
description: 'Mid-size multimodal model that supports up to 1 million tokens',
|
|
@@ -63,7 +65,7 @@ const Google: ModelProviderCard = {
|
|
|
63
65
|
enabled: true,
|
|
64
66
|
id: 'gemini-1.5-pro-latest',
|
|
65
67
|
maxOutput: 8192,
|
|
66
|
-
tokens:
|
|
68
|
+
tokens: 1_048_576 + 8192,
|
|
67
69
|
vision: true,
|
|
68
70
|
},
|
|
69
71
|
{
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
|
+
// ref https://www.minimaxi.com/document/guides/chat-model/pro/api
|
|
3
4
|
const Minimax: ModelProviderCard = {
|
|
4
5
|
chatModels: [
|
|
6
|
+
{
|
|
7
|
+
description: '复杂场景,例如应用题计算、科学计算等场景',
|
|
8
|
+
displayName: 'abab6.5',
|
|
9
|
+
enabled: true,
|
|
10
|
+
id: 'abab6.5-chat',
|
|
11
|
+
tokens: 8192,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
description: '通用场景',
|
|
15
|
+
displayName: 'abab6.5s',
|
|
16
|
+
enabled: true,
|
|
17
|
+
id: 'abab6.5s-chat',
|
|
18
|
+
tokens: 245_760,
|
|
19
|
+
},
|
|
5
20
|
{
|
|
6
21
|
description: '更复杂的格式化文本生成',
|
|
7
22
|
displayName: 'abab6',
|
|
@@ -6,7 +6,7 @@ const Ollama: ModelProviderCard = {
|
|
|
6
6
|
displayName: 'Llama3 8B',
|
|
7
7
|
enabled: true,
|
|
8
8
|
id: 'llama3',
|
|
9
|
-
tokens: 8000,
|
|
9
|
+
tokens: 8000, // https://huggingface.co/blog/zh/llama3#llama-3-的新进展
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
displayName: 'Llama3 70B',
|
|
@@ -17,48 +17,48 @@ const Ollama: ModelProviderCard = {
|
|
|
17
17
|
displayName: 'Command R 35B',
|
|
18
18
|
enabled: true,
|
|
19
19
|
id: 'command-r',
|
|
20
|
-
tokens:
|
|
20
|
+
tokens: 131_072, // https://huggingface.co/CohereForAI/c4ai-command-r-v01/blob/main/config.json
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
displayName: 'Command R+ 104B (Q2_K)',
|
|
24
24
|
id: 'command-r-plus:104b-q2_K',
|
|
25
|
-
tokens:
|
|
25
|
+
tokens: 131_072, // https://huggingface.co/CohereForAI/c4ai-command-r-plus/blob/main/config.json
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
displayName: 'Gemma 7B',
|
|
29
29
|
enabled: true,
|
|
30
30
|
id: 'gemma',
|
|
31
|
-
tokens:
|
|
31
|
+
tokens: 8192, // https://huggingface.co/google/gemma-7b-it/discussions/73#65e9678c0cda621164a95bad
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
displayName: 'Gemma 2B',
|
|
35
35
|
id: 'gemma:2b',
|
|
36
|
-
tokens:
|
|
36
|
+
tokens: 8192,
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
displayName: 'Llama2 Chat 13B',
|
|
40
40
|
id: 'llama2:13b',
|
|
41
|
-
tokens:
|
|
41
|
+
tokens: 4096, // https://llama.meta.com/llama2/
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
displayName: 'Llama2 Chat 7B',
|
|
45
45
|
id: 'llama2',
|
|
46
|
-
tokens:
|
|
46
|
+
tokens: 4096,
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
displayName: 'Llama2 Chat 70B',
|
|
50
50
|
id: 'llama2:70b',
|
|
51
|
-
tokens:
|
|
51
|
+
tokens: 4096,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
displayName: 'Llama2 CN 13B',
|
|
55
55
|
id: 'llama2-chinese:13b',
|
|
56
|
-
tokens:
|
|
56
|
+
tokens: 4096,
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
displayName: 'Llama2 CN 7B',
|
|
60
60
|
id: 'llama2-chinese',
|
|
61
|
-
tokens:
|
|
61
|
+
tokens: 4096,
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
displayName: 'WizardLM 2 7B',
|
|
@@ -74,45 +74,45 @@ const Ollama: ModelProviderCard = {
|
|
|
74
74
|
{
|
|
75
75
|
displayName: 'Code Llama 7B',
|
|
76
76
|
id: 'codellama',
|
|
77
|
-
tokens:
|
|
77
|
+
tokens: 16_384, // https://huggingface.co/codellama/CodeLlama-7b-hf/blob/main/config.json
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
displayName: 'Code Llama 34B',
|
|
81
81
|
id: 'codellama:34b',
|
|
82
|
-
tokens:
|
|
82
|
+
tokens: 16_384,
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
displayName: 'Code Llama 70B',
|
|
86
86
|
id: 'codellama:70b',
|
|
87
|
-
tokens:
|
|
87
|
+
tokens: 16_384,
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
displayName: 'Code Llama 7B (Python)',
|
|
91
91
|
id: 'codellama:python',
|
|
92
|
-
tokens:
|
|
92
|
+
tokens: 16_384,
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
displayName: 'Phi3-Instruct 3.8B',
|
|
96
96
|
enabled: true,
|
|
97
97
|
id: 'phi3:instruct',
|
|
98
|
-
tokens:
|
|
98
|
+
tokens: 131_072, // https://huggingface.co/microsoft/Phi-3-mini-128k-instruct/blob/main/config.json
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
displayName: 'Mistral',
|
|
102
102
|
enabled: true,
|
|
103
103
|
id: 'mistral',
|
|
104
|
-
tokens:
|
|
104
|
+
tokens: 32_768, // https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/blob/main/config.json
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
displayName: 'Mixtral 8x7B',
|
|
108
108
|
enabled: true,
|
|
109
109
|
id: 'mixtral',
|
|
110
|
-
tokens:
|
|
110
|
+
tokens: 32_768,
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
displayName: 'Mixtral 8x22B',
|
|
114
114
|
id: 'mixtral:8x22b',
|
|
115
|
-
tokens:
|
|
115
|
+
tokens: 65_536, // https://huggingface.co/mistralai/Mixtral-8x22B-v0.1/blob/main/config.json
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
displayName: 'Qwen Chat 4B',
|
|
@@ -138,19 +138,19 @@ const Ollama: ModelProviderCard = {
|
|
|
138
138
|
{
|
|
139
139
|
displayName: 'LLaVA 7B',
|
|
140
140
|
id: 'llava',
|
|
141
|
-
tokens:
|
|
141
|
+
tokens: 4096, // https://huggingface.co/llava-hf/llava-1.5-7b-hf/blob/main/config.json
|
|
142
142
|
vision: true,
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
displayName: 'LLaVA 13B',
|
|
146
146
|
id: 'llava:13b',
|
|
147
|
-
tokens:
|
|
147
|
+
tokens: 4096,
|
|
148
148
|
vision: true,
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
displayName: 'LLaVA 34B',
|
|
152
152
|
id: 'llava:34b',
|
|
153
|
-
tokens:
|
|
153
|
+
tokens: 4096,
|
|
154
154
|
vision: true,
|
|
155
155
|
},
|
|
156
156
|
],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
|
+
// ref https://platform.lingyiwanwu.com/
|
|
3
4
|
const ZeroOne: ModelProviderCard = {
|
|
4
5
|
chatModels: [
|
|
5
6
|
{
|
|
@@ -7,7 +8,7 @@ const ZeroOne: ModelProviderCard = {
|
|
|
7
8
|
displayName: 'YI 34B Chat',
|
|
8
9
|
enabled: true,
|
|
9
10
|
id: 'yi-34b-chat-0205',
|
|
10
|
-
tokens:
|
|
11
|
+
tokens: 4096, // https://huggingface.co/01-ai/Yi-34B-Chat/blob/main/config.json
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
description:
|
|
@@ -15,7 +16,7 @@ const ZeroOne: ModelProviderCard = {
|
|
|
15
16
|
displayName: 'YI Vision Plus',
|
|
16
17
|
enabled: true,
|
|
17
18
|
id: 'yi-vl-plus',
|
|
18
|
-
tokens:
|
|
19
|
+
tokens: 4096,
|
|
19
20
|
vision: true,
|
|
20
21
|
},
|
|
21
22
|
{
|
|
@@ -23,7 +24,7 @@ const ZeroOne: ModelProviderCard = {
|
|
|
23
24
|
displayName: 'YI 34B Chat 200k',
|
|
24
25
|
enabled: true,
|
|
25
26
|
id: 'yi-34b-chat-200k',
|
|
26
|
-
tokens: 200_000,
|
|
27
|
+
tokens: 200_000, // https://huggingface.co/01-ai/Yi-34B-200K/blob/main/config.json
|
|
27
28
|
},
|
|
28
29
|
],
|
|
29
30
|
id: 'zeroone',
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
3
|
// TODO: 等待 ZhiPu 修复 API 问题后开启 functionCall
|
|
4
|
-
// refs: https://github.com/lobehub/lobe-chat/discussions/737#discussioncomment-8315815
|
|
5
4
|
// 暂时不透出 GLM 系列的 function_call 功能
|
|
5
|
+
// refs https://github.com/lobehub/lobe-chat/discussions/737#discussioncomment-8315815
|
|
6
|
+
|
|
7
|
+
// ref https://open.bigmodel.cn/dev/howuse/model
|
|
6
8
|
const ZhiPu: ModelProviderCard = {
|
|
7
9
|
chatModels: [
|
|
8
10
|
{
|
|
@@ -19,7 +21,7 @@ const ZhiPu: ModelProviderCard = {
|
|
|
19
21
|
displayName: 'GLM-4 Vision',
|
|
20
22
|
enabled: true,
|
|
21
23
|
id: 'glm-4v',
|
|
22
|
-
tokens:
|
|
24
|
+
tokens: 2000,
|
|
23
25
|
vision: true,
|
|
24
26
|
},
|
|
25
27
|
{
|
package/src/types/llm.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|