From 859e0f2b0b6e0fbb1eb1e45b02daf54e13e75d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:17:01 +0800 Subject: [PATCH] refactor(providers): merge local and remote --- packages/providers/src/index.ts | 3 +-- packages/providers/src/local/index.ts | 1 - .../src/{remote => providers}/google-generative-ai.ts | 0 packages/providers/src/{remote => providers}/index.ts | 1 + packages/providers/src/{local => providers}/ollama.ts | 0 packages/providers/src/{remote => providers}/openai.ts | 0 6 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 packages/providers/src/local/index.ts rename packages/providers/src/{remote => providers}/google-generative-ai.ts (100%) rename packages/providers/src/{remote => providers}/index.ts (71%) rename packages/providers/src/{local => providers}/ollama.ts (100%) rename packages/providers/src/{remote => providers}/openai.ts (100%) diff --git a/packages/providers/src/index.ts b/packages/providers/src/index.ts index a7192ad..1641abe 100644 --- a/packages/providers/src/index.ts +++ b/packages/providers/src/index.ts @@ -1,4 +1,3 @@ -export * from './local' -export * from './remote' +export * from './providers' export type * from './types' export * from './utils' diff --git a/packages/providers/src/local/index.ts b/packages/providers/src/local/index.ts deleted file mode 100644 index 91d7c48..0000000 --- a/packages/providers/src/local/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './ollama' diff --git a/packages/providers/src/remote/google-generative-ai.ts b/packages/providers/src/providers/google-generative-ai.ts similarity index 100% rename from packages/providers/src/remote/google-generative-ai.ts rename to packages/providers/src/providers/google-generative-ai.ts diff --git a/packages/providers/src/remote/index.ts b/packages/providers/src/providers/index.ts similarity index 71% rename from packages/providers/src/remote/index.ts rename to packages/providers/src/providers/index.ts index d61c3b8..cca94a5 100644 --- a/packages/providers/src/remote/index.ts +++ b/packages/providers/src/providers/index.ts @@ -1,2 +1,3 @@ export * from './google-generative-ai' +export * from './ollama' export * from './openai' diff --git a/packages/providers/src/local/ollama.ts b/packages/providers/src/providers/ollama.ts similarity index 100% rename from packages/providers/src/local/ollama.ts rename to packages/providers/src/providers/ollama.ts diff --git a/packages/providers/src/remote/openai.ts b/packages/providers/src/providers/openai.ts similarity index 100% rename from packages/providers/src/remote/openai.ts rename to packages/providers/src/providers/openai.ts