export function loadEmbeddingConfig(env = process.env) {
    const provider = normalizeEmbeddingProvider(env.OMK_EMBEDDING_PROVIDER);
    return {
        provider,
        baseUrl: env.OMK_EMBEDDING_BASE_URL,
        model: env.OMK_EMBEDDING_MODEL,
        apiKey: env.OMK_EMBEDDING_API_KEY,
        enabled: provider !== "none",
    };
}
export function redactEmbeddingConfig(config) {
    return {
        ...config,
        apiKey: config.apiKey ? "***" : undefined,
    };
}
export function createEmbeddingClient(_config) {
    throw new Error("Embedding generation is not yet implemented. Set OMK_EMBEDDING_PROVIDER=none to disable embeddings.");
}
function normalizeEmbeddingProvider(value) {
    if (value === "ollama" || value === "openai_compatible")
        return value;
    return "none";
}
