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

Refactor to use yarl package for safe URL manipulation #74

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

Conversation

rapsealk
Copy link

@rapsealk rapsealk commented Oct 15, 2024

Hello llmperf!

This pull request suggests to use yarl, which is already included, to manipulate URL safely.

The change in this pull request, yarl.URL(address).with_path("/chat/completions"), will always result in a valid URL, whether the address ends with a trailing slash(/) or not.

Thanks in advance for your kind review!

Ref

@rapsealk
Copy link
Author

rapsealk commented Oct 27, 2024

Hi @waleedkadous! Would you mind if I ask for a review? Thanks in advance.

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