Interface LlmUtilityServiceGrpc.AsyncService (3.38.0)

public static interface LlmUtilityServiceGrpc.AsyncService

Service for LLM related utility functions.

Methods

computeTokens(ComputeTokensRequest request, StreamObserver<ComputeTokensResponse> responseObserver)

public default void computeTokens(ComputeTokensRequest request, StreamObserver<ComputeTokensResponse> responseObserver)

Return a list of tokens based on the input text.

Parameters
NameDescription
requestComputeTokensRequest
responseObserverio.grpc.stub.StreamObserver<ComputeTokensResponse>

countTokens(CountTokensRequest request, StreamObserver<CountTokensResponse> responseObserver)

public default void countTokens(CountTokensRequest request, StreamObserver<CountTokensResponse> responseObserver)

Perform a token counting.

Parameters
NameDescription
requestCountTokensRequest
responseObserverio.grpc.stub.StreamObserver<CountTokensResponse>