Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Lesly update name instance #284

Closed
wants to merge 3 commits into from

Conversation

Leslyp
Copy link

@Leslyp Leslyp commented May 10, 2023

Summary by OpenAI

New Feature:

  • Switched from OpenAI GPT-3.5 Turbo to RedRover GPT-4 model
  • Updated API calls and error messages to use RedRover service

Refactor:

🚀 A new era has begun, we cheer,
With RedRover's GPT-4, we're here!
From OpenAI, we've made the switch,
To bring improvements without a hitch! 🎉

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2023

🤖 OpenAI

### Summary
This PR replaces the OpenAI API with the RedRover API, changing the default model from `gpt-3.5-turbo` to `gpt-4`. The changes involve a significant modification in the external service used for fetching data and may impact the behavior of the code.

| Files                   | Summary                                                                                                   |
|-------------------------|-----------------------------------------------------------------------------------------------------------|
| action.yml, src/review.ts | Changes the default value of `openai_heavy_model`, updates instances of "@openai" to "@RedRover", and fetches data from RedRover instead of OpenAI. |

Chat with 🤖 OpenAI Bot (@openai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @openai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Ignoring further reviews

  • Type @openai: ignore anywhere in the PR description to ignore further reviews from the bot.


In the recent run, only the files that changed from the base of the PR and between 9154cf6cf859021014f76056981147f3683204c1 and 0a49febe607e876fc74f97fd04736be00697c253 commits were reviewed.

Comment on lines 289 to +291
if (summarizeResp === '') {
info('summarize: nothing obtained from openai')
summariesFailed.push(`${filename} (nothing obtained from openai)`)
info('summarize: nothing fetched from RedRover')
summariesFailed.push(`${filename} (nothing fetched from RedRover)`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Replace the log message to maintain consistency with other log messages.

Suggested change
if (summarizeResp === '') {
info('summarize: nothing obtained from openai')
summariesFailed.push(`${filename} (nothing obtained from openai)`)
info('summarize: nothing fetched from RedRover')
summariesFailed.push(`${filename} (nothing fetched from RedRover)`)
info('summarize: nothing fetched from RedRover for ' + filename)
summariesFailed.push(`${filename} (nothing fetched from RedRover)`)

Comment on lines 313 to +315
} catch (e: any) {
warning(`summarize: error from openai: ${e as string}`)
summariesFailed.push(`${filename} (error from openai: ${e as string})})`)
warning(`summarize: error from RedRover: ${e as string}`)
summariesFailed.push(`${filename} (error from RedRover: ${e as string})})`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Maintain consistency in log messages and error handling.

Suggested change
} catch (e: any) {
warning(`summarize: error from openai: ${e as string}`)
summariesFailed.push(`${filename} (error from openai: ${e as string})})`)
warning(`summarize: error from RedRover: ${e as string}`)
summariesFailed.push(`${filename} (error from RedRover: ${e as string})})`)
warning(`summarize: error from RedRover for ${filename}: ${e as string}`)
summariesFailed.push(`${filename} (error from RedRover: ${e as string})`)

Comment on lines 354 to 356
if (summarizeResp === '') {
warning('summarize: nothing obtained from openai')
warning('summarize: nothing fetched from RedRover')
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Update the log message for consistency.

Suggested change
if (summarizeResp === '') {
warning('summarize: nothing obtained from openai')
warning('summarize: nothing fetched from RedRover')
} else {
warning('summarize: nothing fetched from RedRover for final response')

Comment on lines 367 to 369
if (summarizeFinalResponse === '') {
info('summarize: nothing obtained from openai')
info('summarize: nothing fetched from RedRover')
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Update the log message for consistency.

Suggested change
if (summarizeFinalResponse === '') {
info('summarize: nothing obtained from openai')
info('summarize: nothing fetched from RedRover')
}
info('summarize: nothing fetched from RedRover for final response')

Comment on lines 377 to 379
if (releaseNotesResponse === '') {
info('release notes: nothing obtained from openai')
info('release notes: nothing fetched from RedRover')
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Update the log message for consistency.

Suggested change
if (releaseNotesResponse === '') {
info('release notes: nothing obtained from openai')
info('release notes: nothing fetched from RedRover')
} else {
info('release notes: nothing fetched from RedRover')

Comment on lines 590 to 592
if (response === '') {
info('review: nothing obtained from openai')
info('review: nothing fetched from RedRover')
reviewsFailed.push(`${filename} (no response)`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

Update the log message for consistency.

Suggested change
if (response === '') {
info('review: nothing obtained from openai')
info('review: nothing fetched from RedRover')
reviewsFailed.push(`${filename} (no response)`)
info('review: nothing fetched from RedRover for ' + filename)
reviewsFailed.push(`${filename} (nothing fetched from RedRover)`)

Comment on lines 375 to 383
{}
)
if (releaseNotesResponse === '') {
info('release notes: nothing obtained from openai')
info('release notes: nothing fetched from RedRover')
} else {
let message = '### Summary by OpenAI\n\n'
let message = '### Summary by RedRover\n\n'
message += releaseNotesResponse
try {
await commenter.updateDescription(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 OpenAI

In line 380, change the summary message to include "RedRover" instead of "OpenAI".

Suggested change
{}
)
if (releaseNotesResponse === '') {
info('release notes: nothing obtained from openai')
info('release notes: nothing fetched from RedRover')
} else {
let message = '### Summary by OpenAI\n\n'
let message = '### Summary by RedRover\n\n'
message += releaseNotesResponse
try {
await commenter.updateDescription(
let message = '### Summary by RedRover\n\n'
message += releaseNotesResponse
try {
await commenter.updateDescription(

@Leslyp Leslyp closed this May 10, 2023
@Leslyp Leslyp deleted the lesly-update-name-instance branch May 10, 2023 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants