Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: instill-ai/protobufs@c108cb3
  • Loading branch information
droplet-bot committed Oct 1, 2024
1 parent 64439fa commit 1279a3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/app/v1alpha/app_public_service_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/app/v1alpha/app_public_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(self, channel):
request_serializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationRequest.SerializeToString,
response_deserializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationResponse.FromString,
)
self.Chat = channel.unary_stream(
self.Chat = channel.unary_unary(
'/app.app.v1alpha.AppPublicService/Chat',
request_serializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.SerializeToString,
response_deserializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.FromString,
Expand Down Expand Up @@ -341,7 +341,7 @@ def add_AppPublicServiceServicer_to_server(servicer, server):
request_deserializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationRequest.FromString,
response_serializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationResponse.SerializeToString,
),
'Chat': grpc.unary_stream_rpc_method_handler(
'Chat': grpc.unary_unary_rpc_method_handler(
servicer.Chat,
request_deserializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.FromString,
response_serializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.SerializeToString,
Expand Down Expand Up @@ -658,7 +658,7 @@ def Chat(request,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/app.app.v1alpha.AppPublicService/Chat',
return grpc.experimental.unary_unary(request, target, '/app.app.v1alpha.AppPublicService/Chat',
app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.SerializeToString,
app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.FromString,
options, channel_credentials,
Expand Down
6 changes: 3 additions & 3 deletions app/app/v1alpha/app_public_service_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class AppPublicServiceStub:
create a new conversation and use the auth user uid as creator uid and auto
generate a new conversation id on the behalf of auth user.
"""
Chat: grpc.UnaryStreamMultiCallable[
Chat: grpc.UnaryUnaryMultiCallable[
app.app.v1alpha.conversation_pb2.ChatRequest,
app.app.v1alpha.conversation_pb2.ChatResponse,
]
Expand Down Expand Up @@ -236,7 +236,7 @@ class AppPublicServiceAsyncStub:
create a new conversation and use the auth user uid as creator uid and auto
generate a new conversation id on the behalf of auth user.
"""
Chat: grpc.aio.UnaryStreamMultiCallable[
Chat: grpc.aio.UnaryUnaryMultiCallable[
app.app.v1alpha.conversation_pb2.ChatRequest,
app.app.v1alpha.conversation_pb2.ChatResponse,
]
Expand Down Expand Up @@ -389,7 +389,7 @@ class AppPublicServiceServicer(metaclass=abc.ABCMeta):
self,
request: app.app.v1alpha.conversation_pb2.ChatRequest,
context: _ServicerContext,
) -> typing.Union[collections.abc.Iterator[app.app.v1alpha.conversation_pb2.ChatResponse], collections.abc.AsyncIterator[app.app.v1alpha.conversation_pb2.ChatResponse]]:
) -> typing.Union[app.app.v1alpha.conversation_pb2.ChatResponse, collections.abc.Awaitable[app.app.v1alpha.conversation_pb2.ChatResponse]]:
"""Chat
Chat sends a message asynchronously and streams back the response.
Expand Down

0 comments on commit 1279a3b

Please sign in to comment.