Skip to content

Commit

Permalink
chore: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
anc95 committed Nov 8, 2024
1 parent 50ee9fb commit 289d6c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
max_tokens: 10000
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length.
IGNORE_PATTERNS: /node_modules,*.md # Regex pattern to ignore files, separated by comma

# IF you are using azure openai
AZURE_API_VERSION: xx
AZURE_DEPLOYMENT: xx
```
## Self-hosting
Expand Down
2 changes: 1 addition & 1 deletion src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Chat {
}
],
// Use model or deployment name based on the environment
model: this.isAzure ? this.deployment : process.env.MODEL || 'gpt-4',
model: (this.isAzure ? this.deployment : process.env.MODEL || 'gpt-4o-mini') as any,
temperature: +(process.env.temperature || 0) || 1,
top_p: +(process.env.top_p || 0) || 1,
max_tokens: process.env.max_tokens
Expand Down

0 comments on commit 289d6c4

Please sign in to comment.