Skip to content

Commit

Permalink
fix(cz-git): rollback max_token to avoid AI message sliced (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhengqbbb authored Oct 6, 2024
2 parents c348925 + ceba40a commit 6151ef8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ DX first and more engineered, lightweight, customizable, standard output format

```bash
$ npm i -D cz-git
+ cz-git (1.75 MB)
+ cz-git (1.76 MB)
added 1 package in 0.552s
```

Expand Down Expand Up @@ -179,7 +179,7 @@ added 1 package in 0.531s
[⇒ FAQ](https://cz-git.qbb.sh/faq/)

<a target="_blank" href="https://packagephobia.com/result?p=cz-git,czg">
<img src="https://cdn.jsdelivr.net/gh/Zhengqbbb/[email protected].6/image/cz-git-v1.10.0.png" alt="size-overview"><br>
<img src="https://cdn.jsdelivr.net/gh/Zhengqbbb/[email protected].7/image/cz-git-v1.10.0.png" alt="size-overview"><br>
<sub>https://packagephobia.com/result?p=cz-git,czg</sub>
</a>

Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ useMediumZoom()
$ npm install -D cz-git<br>
+ cz-git
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(<span c-orange-5> 1.75 MB </span>) <br>added &nbsp;<span c-orange-5>1</span>&nbsp; package
(<span c-orange-5> 1.76 MB </span>) <br>added &nbsp;<span c-orange-5>1</span>&nbsp; package
in &nbsp;<span c-orange-5>0.552s</span>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Support OpenAI, and more engineered, lightweight, customizable, standard output

```sh
$ npm install -D cz-git
+ cz-git (1.75 MB)
+ cz-git (1.76 MB)
added 1 package in 0.552s
```

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sitemap:

```sh
$ npm install -D cz-git
+ cz-git (1.75 MB)
+ cz-git (1.76 MB)
added 1 package in 0.552s
```

Expand Down
2 changes: 1 addition & 1 deletion packages/cz-git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ A support OpenAI, and more engineered, lightweight, customizable, standard outpu

```bash
$ npm i -D cz-git
+ cz-git (1.75 MB)
+ cz-git (1.76 MB)
added 1 package in 0.552s
```

Expand Down
2 changes: 1 addition & 1 deletion packages/cz-git/src/generator/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function useModelStrategy(options: CommitizenGitOptions, prompt: string) {
stream: false,
top_p: 1,
temperature: 0.7,
max_tokens: 30,
max_tokens: 200,
n: options.aiNumber || 1,
},
url: `${options.apiEndpoint}/chat/completions`,
Expand Down

0 comments on commit 6151ef8

Please sign in to comment.