Skip to content

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