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 issue with starting both servers #11

Closed

Conversation

prashantgupta24
Copy link
Contributor

@prashantgupta24 prashantgupta24 commented Jun 18, 2024

Description

Pydantic didn't like TYPE_CHECKING:

pydantic.errors.PydanticUndefinedAnnotation: name 'ChatCompletionRequest' is not defined

Also had to remove unnecessary yield

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@@ -274,8 +266,6 @@ async def _force_log() -> None:

server = await start_grpc_server(async_llm_engine, args)

yield

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm assuming the yield was a no-op in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this won't work. see my comments on #9.

Perhaps something like this would work (although untested) https://gist.github.com/dtrifiro/251649959af43e3b5853bb8ab862d5a6

@prashantgupta24
Copy link
Contributor Author

closing in favor of #12

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