-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
community: Fix ChatLiteLLMRouter runtime issues #28163
community: Fix ChatLiteLLMRouter runtime issues #28163
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
cc: @StephenKThung |
@baskaryan This PR is ready to go in. Can you review and merge it? Thanks. |
@@ -43,6 +56,39 @@ | |||
] | |||
|
|||
|
|||
# from https://stackoverflow.com/a/78573267 | |||
def aiter_to_iter(it: AsyncIterator) -> Generator: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we implement a synchronous _get_fake_results_generator
instead of implementing this conversion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The aiter_to_iter() function allows reuse of the async fake results generator function for both the async and sync cases. I think having a separate synchronous function would lead to duplication of the output and output logic.
|
||
|
||
@pytest.mark.scheduled | ||
@pytest.mark.enable_socket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't run community integration tests in CI. is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest.mark.enable_socket is needed to run the tests manually on a dev machine, since later versions of pytest disable sockets by default, and we need sockets enabled to run these tests.
Description: Fix ChatLiteLLMRouter ctor validation and model_name parameter
Issue: #19356, #27455, #28077
Twitter handle: @bburgin_0