Skip to content

Commit 289d6c4

Browse files
committed
chore: update doc
1 parent 50ee9fb commit 289d6c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ jobs:
6868
max_tokens: 10000
6969
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.
7070
IGNORE_PATTERNS: /node_modules,*.md # Regex pattern to ignore files, separated by comma
71+
72+
# IF you are using azure openai
73+
AZURE_API_VERSION: xx
74+
AZURE_DEPLOYMENT: xx
7175
```
7276
7377
## Self-hosting

src/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Chat {
5050
}
5151
],
5252
// Use model or deployment name based on the environment
53-
model: this.isAzure ? this.deployment : process.env.MODEL || 'gpt-4',
53+
model: (this.isAzure ? this.deployment : process.env.MODEL || 'gpt-4o-mini') as any,
5454
temperature: +(process.env.temperature || 0) || 1,
5555
top_p: +(process.env.top_p || 0) || 1,
5656
max_tokens: process.env.max_tokens

0 commit comments

Comments
 (0)