Skip to content

_prepare_request option #11

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

Draft
wants to merge 2 commits into
base: v1_azure
Choose a base branch
from
Draft

_prepare_request option #11

wants to merge 2 commits into from

Conversation

kristapratico
Copy link
Collaborator

No description provided.

@kristapratico kristapratico requested a review from johanste October 6, 2023 02:02
Comment on lines +385 to +388
if url.path.startswith("/audio"):
model_name = request.stream.fields[0].value # is this a robust way to extract model name?
request.url = url.copy_with(path=f"/openai/deployments/{model_name}{url.path}")
return
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can't get model out of the content here b/c I don't want to call read() on the request before I send it..... it's probably not a a robust way to extract the model name from the httpx._multipart.MultipartStream. Need to re-think this approach...

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.

2 participants