@grunnverk/core 1.5.10 → 1.5.11-dev.20260212044304.950874c

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.
package/dist/index.js CHANGED
@@ -2314,10 +2314,15 @@ let globalGitMutexManager = null;
2314
2314
  /**
2315
2315
  * Adapter for converting kodrdriv Config to ai-service AIConfig
2316
2316
  */ /**
2317
- * Convert kodrdriv Config to AIConfig
2317
+ * Convert kodrdriv Config to AIConfig.
2318
+ *
2319
+ * Provider selection is handled by ai-service's resolveProvider():
2320
+ * - If model is specified, provider is detected from model name
2321
+ * - If no model, picks based on available API keys (prefers Anthropic)
2318
2322
  */ function toAIConfig(config) {
2319
2323
  return {
2320
- apiKey: config.openaiApiKey || process.env.OPENAI_API_KEY,
2324
+ apiKey: config.apiKey || config.openaiApiKey || undefined,
2325
+ provider: config.provider || 'auto',
2321
2326
  model: config.model,
2322
2327
  reasoning: config.openaiReasoning,
2323
2328
  commands: {