-
Notifications
You must be signed in to change notification settings - Fork 308
Test update readme #513
Test update readme #513
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,11 +152,11 @@ inputs: | |
required: false | ||
description: | ||
'Model to use for simple tasks like summarizing diff on a file.' | ||
default: 'gpt-3.5-turbo' | ||
default: 'pai-001-light' | ||
openai_heavy_model: | ||
required: false | ||
description: 'Model to use for complex tasks such as code reviews.' | ||
default: 'gpt-4' | ||
default: 'pai-001' | ||
Comment on lines
+155
to
+159
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The indentation for the default: 'pai-001-light'
openai_heavy_model:
required: false
description: 'Model to use for complex tasks such as code reviews.'
default: 'pai-001'
- openai_model_temperature:
+160:
+161: openai_model_temperature:
required: false
description: 'Temperature for GPT model' |
||
openai_model_temperature: | ||
required: false | ||
description: 'Temperature for GPT model' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ IMPORTANT: Entire response must be in the language with ISO code: ${options.lang | |
` | ||
|
||
this.api = new ChatGPTAPI({ | ||
apiBaseUrl: options.apiBaseUrl, | ||
apiBaseUrl: process.env.OPENAI_API_BASE_URL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change from using a value from - apiBaseUrl: process.env.OPENAI_API_BASE_URL,
+ apiBaseUrl: options.apiBaseUrl ?? process.env.OPENAI_API_BASE_URL, |
||
systemMessage, | ||
apiKey: process.env.OPENAI_API_KEY, | ||
apiOrg: process.env.OPENAI_API_ORG ?? undefined, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ export class Options { | |
reviewCommentLGTM = false, | ||
pathFilters: string[] | null = null, | ||
systemMessage = '', | ||
openaiLightModel = 'gpt-3.5-turbo', | ||
openaiHeavyModel = 'gpt-3.5-turbo', | ||
openaiLightModel = 'pai-001-light', | ||
openaiHeavyModel = 'pai-001', | ||
Comment on lines
+35
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model names for - openaiLightModel = 'gpt-3.5-turbo',
- openaiHeavyModel = 'gpt-3.5-turbo',
+ openaiLightModel = 'pai-001-light',
+ openaiHeavyModel = 'pai-001', |
||
openaiModelTemperature = '0.0', | ||
openaiRetries = '3', | ||
openaiTimeoutMS = '120000', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeRabbit
The addition of the
OPENAI_API_BASE_URL
environment variable is a good idea for flexibility, especially for users who might be using a custom OpenAI API server. However, it would be helpful to provide instructions on how and where to add this key (similar to the other keys). This will ensure consistency in the documentation and make it easier for users to understand how to use this new option.