Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev: provide ability to set timeout options #109

Merged
merged 3 commits into from
Feb 22, 2025
Merged

Dev: provide ability to set timeout options #109

merged 3 commits into from
Feb 22, 2025

Conversation

Chenglong-MS
Copy link
Collaborator

Dev: provide ability for users to set timeout options and max-retry attempts. This would be helpful for slower models.

@Chenglong-MS Chenglong-MS requested a review from Copilot February 21, 2025 23:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.

Files not reviewed (2)
  • src/views/ModelSelectionDialog.tsx: Evaluated as low risk
  • src/app/dfSlice.tsx: Evaluated as low risk
Comments suppressed due to low confidence (1)

py-src/data_formulator/app.py:499

  • Update comment to reflect the new logic of trying up to max_repair_attempts times.
# only try once

src/app/App.tsx Outdated
type="number"
variant="outlined"
value={formulateTimeoutSeconds}
onChange={(e) => setFormulateTimeoutSeconds(parseInt(e.target.value))}
Copy link
Preview

Copilot AI Feb 21, 2025

Choose a reason for hiding this comment

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

The input value should be validated to ensure it is a valid number and within an acceptable range.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
src/app/App.tsx Outdated
type="number"
variant="outlined"
value={maxRepairAttempts}
onChange={(e) => setMaxRepairAttempts(parseInt(e.target.value))}
Copy link
Preview

Copilot AI Feb 21, 2025

Choose a reason for hiding this comment

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

The input value should be validated to ensure it is a valid number and within an acceptable range.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Comment on lines 489 to 493
print("max_repair_attempts")
print(max_repair_attempts)
print("previous dialog")
print(dialog)

Copy link
Preview

Copilot AI Feb 21, 2025

Choose a reason for hiding this comment

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

Remove debugging print statement.

Suggested change
print("max_repair_attempts")
print(max_repair_attempts)
print("previous dialog")
print(dialog)
app.logger.info(f"max_repair_attempts: {max_repair_attempts}")
app.logger.info(f"previous dialog: {dialog}")

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Comment on lines 489 to 493
print("max_repair_attempts")
print(max_repair_attempts)
print("previous dialog")
print(dialog)

Copy link
Preview

Copilot AI Feb 21, 2025

Choose a reason for hiding this comment

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

Remove debugging print statement.

Suggested change
print("max_repair_attempts")
print(max_repair_attempts)
print("previous dialog")
print(dialog)
app.logger.info(f"max_repair_attempts: {max_repair_attempts}")
app.logger.info(f"previous dialog: {dialog}")

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@Chenglong-MS Chenglong-MS merged commit 6e91164 into main Feb 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant