-
Notifications
You must be signed in to change notification settings - Fork 180
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
move examples gateway #992
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues found.Scanned Files |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
ChatQnA/chatqna.py
Outdated
def __init__(self, host="0.0.0.0", port=8000): | ||
self.host = host | ||
self.port = port | ||
ServiceOrchestrator.align_inputs = align_inputs | ||
ServiceOrchestrator.align_outputs = align_outputs | ||
ServiceOrchestrator.align_generator = align_generator | ||
self.megaservice = ServiceOrchestrator() | ||
|
||
super().__init__( |
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 graph definition should run before the gateway is started, otherwise the DAG is not recognized correctly by the gateway and the gateway just will be forked to another process without the graph definition. One change could be e.g.
self.megaservice = ServiceOrchestrator()
self.add_remote_service() ## Call here to make sure megaservice know the graph
super().__init__(
megaservice=self.megaservice,
host=self.host,
port=self.port,
endpoint="/v1/audioqna",
input_datatype=AudioChatCompletionRequest,
output_datatype=ChatCompletionResponse,
)
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.
update code, please review again~ Thanks~
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.
I've reproduced the subsequent CI issues. I guess we need to set MEGA_SERVICE_HOST_IP=0.0.0.0
after this modification.
Description
move examples gateway implementation from GenAIComps to GenAIExamples