mirror of
https://github.com/ChatGPTNextWeb/NextChat.git
synced 2026-03-02 16:23:23 +08:00
feat: add multi-model support
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createWebDavClient } from "./webdav";
|
||||
import { createUpstashClient } from "./upstash";
|
||||
import { SyncStore } from "@/app/store/sync";
|
||||
|
||||
export enum ProviderType {
|
||||
WebDAV = "webdav",
|
||||
@@ -27,7 +28,7 @@ export type SyncClient = {
|
||||
|
||||
export function createSyncClient<T extends ProviderType>(
|
||||
provider: T,
|
||||
config: SyncClientConfig[T],
|
||||
store: SyncStore,
|
||||
): SyncClient {
|
||||
return SyncClients[provider](config as any) as any;
|
||||
return SyncClients[provider](store);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user