czg 1.13.2 → 1.14.0

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/lib/index.d.ts CHANGED
@@ -379,6 +379,16 @@ interface CommitizenGitOptions {
379
379
  * @default "https://api.openai.com/v1"
380
380
  */
381
381
  apiEndpoint?: string;
382
+ /**
383
+ * Extra fields merged into the AI request body of `/chat/completions`
384
+ *
385
+ * @note Set a field to `null` to **remove** it from the request body.
386
+ * Some models reject a field outright, where overriding its value is not enough.
387
+ * e.g. models requiring `max_completion_tokens` reject `max_tokens` at any value.
388
+ * @example { "max_completion_tokens": 4096, "max_tokens": null, "temperature": null }
389
+ * @default undefined
390
+ */
391
+ apiExtraBody?: Record<string, unknown>;
382
392
  /**
383
393
  * Use the callback fn can customize edit information AI question information
384
394
  *