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

fix completions request id #402

Merged
merged 6 commits into from
Dec 8, 2023
Merged

Conversation

saiatmakuri
Copy link
Contributor

Pull Request Summary

have completions use the same request id as that was generated by the middleware

Test Plan and Usage Guide

local

@saiatmakuri saiatmakuri added the bug Something isn't working label Dec 7, 2023
@saiatmakuri saiatmakuri self-assigned this Dec 7, 2023
@@ -1448,7 +1453,7 @@ async def execute(
ObjectNotAuthorizedException: If the owner does not own the model endpoint.
"""

request_id = str(uuid4())
request_id = LoggerTagManager.get(LoggerTagKey.REQUEST_ID) or str(uuid4())
Copy link
Member

Choose a reason for hiding this comment

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

Oh I was thinking we'd leave it as None as a fallback, because that's more obviously wrong while not failing the request. uuid4() could end up (continuing to) misleading people.

@saiatmakuri saiatmakuri merged commit cefef80 into main Dec 8, 2023
5 checks passed
@saiatmakuri saiatmakuri deleted the saiatmakuri/bug-fix/request-id-tag branch December 8, 2023 21:16
@yunfeng-scale yunfeng-scale mentioned this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants