-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: try-start
model service API
#1754
Conversation
@kyujin-cho please resolve conflicts from main branch. Seems like there are lots of changes in api/service module. |
| SessionTerminatedEvent | ||
| ModelServiceStatusEvent, | ||
) -> None: | ||
await reporter.update(message=json.dumps({"event": event.name})) |
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.
@kyujin-cho Could you add session_id on every event?
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.
It would be useful to send session_id when every event is sent. Could you change message data according to comments above @kyujin-cho ?
case SessionTerminatedEvent() | SessionCancelledEvent(): | ||
terminated_event.set() | ||
case ModelServiceStatusEvent(): | ||
await reporter.update(message=event.new_status.value) |
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.
Here as well.
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.
LGTM.
This PR introduces a new
/services/_/try
API.Checklist: (if applicable)