gitxplain 0.1.0 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ const SUPPORTED_PROVIDERS = new Set([
12
12
  ]);
13
13
  const SYSTEM_PROMPT = "You explain Git commits clearly and accurately for developers.";
14
14
 
15
- function getProviderConfig(providerOverride, modelOverride) {
15
+ export function getProviderConfig(providerOverride, modelOverride) {
16
16
  const provider = (providerOverride ?? process.env.LLM_PROVIDER ?? "openai").toLowerCase();
17
17
 
18
18
  if (!SUPPORTED_PROVIDERS.has(provider)) {
@@ -79,7 +79,7 @@ function getProviderConfig(providerOverride, modelOverride) {
79
79
  };
80
80
  }
81
81
 
82
- function validateProviderConfig(config) {
82
+ export function validateProviderConfig(config) {
83
83
  if (!config.model) {
84
84
  throw new Error(`No model configured for provider "${config.provider}".`);
85
85
  }