You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,18 +176,25 @@ Configuration files are searched in this order:
176
176
177
177
### 🤖 Model Configuration
178
178
179
-
CommitLoom supports various OpenAI models with different cost implications:
179
+
CommitLoom supports any OpenAI model for commit message generation. You can specify any model name (e.g., `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, etc.) using the `MODEL_NAME` or `COMMITLOOM_MODEL` environment variable, or with the `-m`/`--model` CLI option.
180
180
181
-
| Model | Description | Cost per 1M tokens (Input/Output) | Best for |
| gpt-3.5-turbo | Legacy, fine-tuned | $3.00 | $6.00 | Training data |
189
+
| gpt-4o-2024-05-13| Legacy, previous version | $5.00 | $15.00 | Legacy support |
187
190
188
-
You can change the model by setting the `MODEL_NAME` environment variable. The default `gpt-4o-mini`model is recommended as it provides the best balance of cost and quality for commit message generation. It's OpenAI's most cost-efficient small model that's smarter and cheaper than GPT-3.5 Turbo.
191
+
> **Default model:**`gpt-4.1-mini`(best balance for documentation and code)
189
192
190
-
> Note: Prices are based on OpenAI's official pricing (https://openai.com/api/pricing/). Batch API usage can provide a 50% discount but responses will be returned within 24 hours.
193
+
> **Warning:** If you use a model that is not in the above list, CommitLoom will still work, but cost estimation and token pricing will not be available for that model. You will see a warning in the CLI, and cost will be reported as zero. To add cost support for a new model, update the `model_costs` dictionary in `commitloom/config/settings.py`.
194
+
195
+
You can change the model by setting the `MODEL_NAME` environment variable. The default `gpt-4.1-mini` model is recommended as it provides the best balance of cost and quality for commit message generation. It's OpenAI's most cost-efficient small model that's smarter and cheaper than GPT-3.5 Turbo.
196
+
197
+
> Note: Prices are based on OpenAI's official pricing (https://openai.com/pricing/). Batch API usage can provide a 50% discount but responses will be returned within 24 hours.
0 commit comments