Skip to content

Commit 1279a3b

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@c108cb3
1 parent 64439fa commit 1279a3b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/app/v1alpha/app_public_service_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app/v1alpha/app_public_service_pb2_grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(self, channel):
102102
request_serializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationRequest.SerializeToString,
103103
response_deserializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationResponse.FromString,
104104
)
105-
self.Chat = channel.unary_stream(
105+
self.Chat = channel.unary_unary(
106106
'/app.app.v1alpha.AppPublicService/Chat',
107107
request_serializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.SerializeToString,
108108
response_deserializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.FromString,
@@ -341,7 +341,7 @@ def add_AppPublicServiceServicer_to_server(servicer, server):
341341
request_deserializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationRequest.FromString,
342342
response_serializer=app_dot_app_dot_v1alpha_dot_app__pb2.RestartPlaygroundConversationResponse.SerializeToString,
343343
),
344-
'Chat': grpc.unary_stream_rpc_method_handler(
344+
'Chat': grpc.unary_unary_rpc_method_handler(
345345
servicer.Chat,
346346
request_deserializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.FromString,
347347
response_serializer=app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.SerializeToString,
@@ -658,7 +658,7 @@ def Chat(request,
658658
wait_for_ready=None,
659659
timeout=None,
660660
metadata=None):
661-
return grpc.experimental.unary_stream(request, target, '/app.app.v1alpha.AppPublicService/Chat',
661+
return grpc.experimental.unary_unary(request, target, '/app.app.v1alpha.AppPublicService/Chat',
662662
app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatRequest.SerializeToString,
663663
app_dot_app_dot_v1alpha_dot_conversation__pb2.ChatResponse.FromString,
664664
options, channel_credentials,

app/app/v1alpha/app_public_service_pb2_grpc.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class AppPublicServiceStub:
122122
create a new conversation and use the auth user uid as creator uid and auto
123123
generate a new conversation id on the behalf of auth user.
124124
"""
125-
Chat: grpc.UnaryStreamMultiCallable[
125+
Chat: grpc.UnaryUnaryMultiCallable[
126126
app.app.v1alpha.conversation_pb2.ChatRequest,
127127
app.app.v1alpha.conversation_pb2.ChatResponse,
128128
]
@@ -236,7 +236,7 @@ class AppPublicServiceAsyncStub:
236236
create a new conversation and use the auth user uid as creator uid and auto
237237
generate a new conversation id on the behalf of auth user.
238238
"""
239-
Chat: grpc.aio.UnaryStreamMultiCallable[
239+
Chat: grpc.aio.UnaryUnaryMultiCallable[
240240
app.app.v1alpha.conversation_pb2.ChatRequest,
241241
app.app.v1alpha.conversation_pb2.ChatResponse,
242242
]
@@ -389,7 +389,7 @@ class AppPublicServiceServicer(metaclass=abc.ABCMeta):
389389
self,
390390
request: app.app.v1alpha.conversation_pb2.ChatRequest,
391391
context: _ServicerContext,
392-
) -> typing.Union[collections.abc.Iterator[app.app.v1alpha.conversation_pb2.ChatResponse], collections.abc.AsyncIterator[app.app.v1alpha.conversation_pb2.ChatResponse]]:
392+
) -> typing.Union[app.app.v1alpha.conversation_pb2.ChatResponse, collections.abc.Awaitable[app.app.v1alpha.conversation_pb2.ChatResponse]]:
393393
"""Chat
394394
395395
Chat sends a message asynchronously and streams back the response.

0 commit comments

Comments
 (0)