aicommits 2.0.0-develop.1 → 2.0.0-develop.10

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/README.md CHANGED
@@ -17,9 +17,11 @@
17
17
  1. Install _aicommits_:
18
18
 
19
19
  ```sh
20
- npm install -g aicommits
20
+ npm install -g aicommits@develop
21
21
  ```
22
22
 
23
+ > We need @develop since v2 is still not released as latest/main! Don't remove it to test v2!
24
+
23
25
  2. Run the setup command to choose your AI provider:
24
26
 
25
27
  ```sh
@@ -40,12 +42,12 @@ This will guide you through:
40
42
  - **Ollama** (local) - Run AI models locally with [Ollama](https://ollama.ai)
41
43
  - **Custom OpenAI-compatible endpoint** - Use any service that implements the OpenAI API
42
44
 
43
- Alternatively, you can use environment variables (recommended for CI/CD):
45
+ **For CI/CD environments**, you can also set up configuration via the config file:
44
46
 
45
47
  ```bash
46
- export OPENAI_API_KEY="your_api_key_here"
47
- export OPENAI_BASE_URL="your_api_endpoint" # Optional, for custom endpoints
48
- export OPENAI_MODEL="your_model_choice" # Optional, defaults to provider default
48
+ aicommits config set OPENAI_API_KEY="your_api_key_here"
49
+ aicommits config set OPENAI_BASE_URL="your_api_endpoint" # Optional, for custom endpoints
50
+ aicommits config set OPENAI_MODEL="your_model_choice" # Optional, defaults to provider default
49
51
  ```
50
52
 
51
53
  > **Note:** When using environment variables, ensure all related variables (e.g., `OPENAI_API_KEY` and `OPENAI_BASE_URL`) are set consistently to avoid configuration mismatches with the config file.