mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-05 00:21:42 +00:00
* refactor(plugins): move plugin contributions into the registry bundle * fix(plugins): guard embedding owner union and drop unused test-util imports * fix(plugins): break registry facade import cycles * fix(plugins): remove obsolete registry snapshot seams * test(gateway): preserve plugin runtime mock exports * test(auto-reply): install builder registry in diagnostics fixture * test(plugins): activate registry-backed capability fixtures
14 lines
527 B
TypeScript
14 lines
527 B
TypeScript
import type { RegisteredEmbeddingProvider } from "./embedding-provider-types.js";
|
|
import { openAICompatibleEmbeddingProviderAdapter } from "./openai-compatible-embedding-provider.js";
|
|
|
|
export const CORE_EMBEDDING_PROVIDERS: RegisteredEmbeddingProvider[] = [
|
|
{
|
|
adapter: openAICompatibleEmbeddingProviderAdapter,
|
|
ownerPluginId: "core",
|
|
},
|
|
];
|
|
|
|
export function getCoreEmbeddingProvider(id: string): RegisteredEmbeddingProvider | undefined {
|
|
return CORE_EMBEDDING_PROVIDERS.find((entry) => entry.adapter.id === id);
|
|
}
|