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: Write a reverse proxy that edit the api_token only (✓ Sandbox Passed) #91

Closed

Conversation

onuratakan
Copy link
Member

Description

This pull request introduces a new functionality to edit the api_token in the upsonic_on_prem API before processing the request.

Summary

  • Added a new module token_handler.py in upsonic_on_prem/api/pre_process/ directory
  • Created a function modify_token to modify the original token
  • Implemented edit_api_token_if_needed function to check and edit the api_token in the request
  • Updated base.py to call edit_api_token_if_needed before processing the request

Fixes #89.


🎉 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

@onuratakan onuratakan self-assigned this Mar 13, 2024
@onuratakan
Copy link
Member Author

Rollback Files For Sweep

  • Rollback changes to upsonic_on_prem/api/pre_process/base.py
  • Rollback changes to upsonic_on_prem/api/pre_process/token_handler.py

This is an automated message generated by Sweep AI.

@onuratakan
Copy link
Member Author

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.

@onuratakan onuratakan closed this Mar 13, 2024
@onuratakan onuratakan deleted the sweep/write_a_reverse_proxy_that_edit_the_api branch March 13, 2024 06:39
Copy link

Qodana Community for Python

3 new problems were found

Inspection name Severity Problems
Unsatisfied package requirements 🔶 Warning 1
PEP 8 coding style violation ◽️ Notice 2

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

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: Write a reverse proxy that edit the api_token only
1 participant