@lobehub/lobehub 2.0.0-next.156 → 2.0.0-next.157
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/packages/model-bank/src/aiModels/cerebras.ts +22 -48
- package/packages/model-bank/src/aiModels/infiniai.ts +62 -0
- package/packages/model-bank/src/aiModels/minimax.ts +23 -11
- package/packages/model-bank/src/aiModels/moonshot.ts +3 -24
- package/packages/model-bank/src/aiModels/openai.ts +0 -23
- package/packages/model-bank/src/aiModels/qwen.ts +26 -27
- package/packages/model-bank/src/aiModels/siliconcloud.ts +46 -0
- package/packages/model-bank/src/aiModels/spark.ts +17 -16
- package/packages/model-bank/src/aiModels/volcengine.ts +53 -0
- package/packages/model-bank/src/aiModels/wenxin.ts +49 -1
- package/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts +2 -2
- package/packages/model-runtime/src/core/openaiCompatibleFactory/index.ts +44 -2
- package/packages/model-runtime/src/providers/minimax/index.ts +1 -11
- package/packages/model-runtime/src/providers/spark/index.test.ts +12 -11
- package/packages/model-runtime/src/providers/spark/index.ts +19 -4
- package/packages/model-runtime/src/providers/volcengine/index.test.ts +0 -14
- package/packages/model-runtime/src/providers/volcengine/index.ts +1 -24
- package/packages/types/src/tool/builtin.ts +6 -6
- package/src/config/modelProviders/spark.ts +0 -3
- package/src/config/modelProviders/volcengine.ts +2 -1
- package/src/store/aiInfra/store.ts +2 -2
- package/src/store/chat/store.ts +2 -2
- package/src/store/discover/store.ts +2 -2
- package/src/store/electron/store.ts +2 -2
- package/src/store/file/store.ts +2 -2
- package/src/store/global/store.ts +2 -2
- package/src/store/knowledgeBase/store.ts +2 -2
- package/src/store/serverConfig/store.ts +2 -2
- package/src/store/session/store.ts +2 -2
- package/src/store/tool/store.ts +2 -2
- package/src/store/user/store.ts +2 -2
|
@@ -10,7 +10,7 @@ import { SessionStoreState, initialState } from './initialState';
|
|
|
10
10
|
import { SessionAction, createSessionSlice } from './slices/session/action';
|
|
11
11
|
import { SessionGroupAction, createSessionGroupSlice } from './slices/sessionGroup/action';
|
|
12
12
|
|
|
13
|
-
// ===============
|
|
13
|
+
// =============== Aggregate createStoreFn ============ //
|
|
14
14
|
|
|
15
15
|
export interface SessionStore extends SessionAction, SessionGroupAction, SessionStoreState {}
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ const createStore: StateCreator<SessionStore, [['zustand/devtools', never]]> = (
|
|
|
20
20
|
...createSessionGroupSlice(...parameters),
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
// ===============
|
|
23
|
+
// =============== Implement useStore ============ //
|
|
24
24
|
const devtools = createDevtools('session');
|
|
25
25
|
|
|
26
26
|
export const useSessionStore = createWithEqualityFn<SessionStore>()(
|
package/src/store/tool/store.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { PluginMCPStoreAction, createMCPPluginStoreSlice } from './slices/mcpSto
|
|
|
10
10
|
import { PluginAction, createPluginSlice } from './slices/plugin';
|
|
11
11
|
import { PluginStoreAction, createPluginStoreSlice } from './slices/oldStore';
|
|
12
12
|
|
|
13
|
-
// ===============
|
|
13
|
+
// =============== Aggregate createStoreFn ============ //
|
|
14
14
|
|
|
15
15
|
export type ToolStore = ToolStoreState &
|
|
16
16
|
CustomPluginAction &
|
|
@@ -28,7 +28,7 @@ const createStore: StateCreator<ToolStore, [['zustand/devtools', never]]> = (...
|
|
|
28
28
|
...createMCPPluginStoreSlice(...parameters),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
// ===============
|
|
31
|
+
// =============== Implement useStore ============ //
|
|
32
32
|
|
|
33
33
|
const devtools = createDevtools('tools');
|
|
34
34
|
|
package/src/store/user/store.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { type CommonAction, createCommonSlice } from './slices/common/action';
|
|
|
10
10
|
import { type PreferenceAction, createPreferenceSlice } from './slices/preference/action';
|
|
11
11
|
import { type UserSettingsAction, createSettingsSlice } from './slices/settings/action';
|
|
12
12
|
|
|
13
|
-
// ===============
|
|
13
|
+
// =============== Aggregate createStoreFn ============ //
|
|
14
14
|
|
|
15
15
|
export type UserStore = UserState &
|
|
16
16
|
UserSettingsAction &
|
|
@@ -26,7 +26,7 @@ const createStore: StateCreator<UserStore, [['zustand/devtools', never]]> = (...
|
|
|
26
26
|
...createCommonSlice(...parameters),
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
// ===============
|
|
29
|
+
// =============== Implement useStore ============ //
|
|
30
30
|
|
|
31
31
|
const devtools = createDevtools('user');
|
|
32
32
|
|