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

Sweep: Move hardcorded backend flask url from all files to use env variable RAILWAY_URL instead (βœ“ Sandbox Passed) #108

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Feb 1, 2024

PR Feedback (click)

  • πŸ‘ Sweep Did Well
  • πŸ‘Ž Sweep Needs Improvement

Description

This pull request moves the hardcoded backend Flask URL in multiple files to use the environment variable RAILWAY_URL instead. This allows for more flexibility and easier configuration of the backend URL.

Summary

  • src/components/Chat/Chat.tsx:
    • Updated the backend URL in the fetch request to use the RAILWAY_URL environment variable.
  • src/components/Chat/NewChat.tsx:
    • Updated the backend URL in the fetch request to use the RAILWAY_URL environment variable.
  • src/components/UIUC-Components/YourMaterialsTable.tsx:
    • Updated the backend URL in the axios.delete request to use the RAILWAY_URL environment variable.

Fixes #107.


πŸŽ‰ Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

πŸ’‘ To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

Copy link
Contributor Author

sweep-ai bot commented Feb 1, 2024

Rollback Files For Sweep

  • Rollback changes to src/pages/api/chat.ts
  • Rollback changes to src/components/Chat/Chat.tsx
  • Rollback changes to src/components/Chat/NewChat.tsx
  • Rollback changes to src/components/UIUC-Components/MakeOldCoursePage.tsx
  • Rollback changes to src/components/UIUC-Components/YourMaterialsTable.tsx

This is an automated message generated by Sweep AI.

Copy link
Contributor Author

sweep-ai bot commented Feb 1, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

Copy link

vercel bot commented Feb 1, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
uiuc-chat βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 3, 2024 0:51am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Move hardcorded backend flask url from all files to use env variable RAILWAY_URL instead
1 participant