Skip to content

Commit

Permalink
fix(cz-git): rollback max_token to avoid AI message sliced
Browse files Browse the repository at this point in the history
link #189
  • Loading branch information
Zhengqbbb committed Oct 6, 2024
1 parent c348925 commit ea9dc0c
Showing 1 changed file with 1 addition and 1 deletion.
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 ea9dc0c

Please sign in to comment.