mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor(plugins): localize private declarations (#101406)
This commit is contained in:
@@ -23,11 +23,11 @@ type LlamaCppLocalOptions = {
|
||||
contextSize?: number | "auto";
|
||||
};
|
||||
|
||||
export type LlamaCppEmbeddingProviderRuntimeOptions = {
|
||||
type LlamaCppEmbeddingProviderRuntimeOptions = {
|
||||
nodeLlamaCppImportUrl?: string;
|
||||
};
|
||||
|
||||
export const LLAMA_CPP_EMBEDDING_PROVIDER_ID = "local";
|
||||
const LLAMA_CPP_EMBEDDING_PROVIDER_ID = "local";
|
||||
export const DEFAULT_LLAMA_CPP_EMBEDDING_MODEL =
|
||||
"hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf";
|
||||
const DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_CACHE_FILE_NAME =
|
||||
@@ -155,7 +155,7 @@ export function formatLlamaCppSetupError(err: unknown): string {
|
||||
|
||||
const requireFromPlugin = createRequire(import.meta.url);
|
||||
|
||||
export function resolveNodeLlamaCppImportUrl(): string {
|
||||
function resolveNodeLlamaCppImportUrl(): string {
|
||||
return pathToFileURL(requireFromPlugin.resolve("node-llama-cpp")).href;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user