Classe LlmUtilityServiceGrpc.LlmUtilityServiceStub (1.3.0)

public static final class LlmUtilityServiceGrpc.LlmUtilityServiceStub extends AbstractAsyncStub<LlmUtilityServiceGrpc.LlmUtilityServiceStub>

Uno stub per consentire ai client di effettuare chiamate RPC asincrone al servizio LlmUtilityService.

Servizio per le funzioni di utilità correlate agli LLM.

Ereditarietà

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > LlmUtilityServiceGrpc.LlmUtilityServiceStub

Metodi

build(Canale canale, CallOptions callOptions)

protected LlmUtilityServiceGrpc.LlmUtilityServiceStub build(Channel channel, CallOptions callOptions)
Parametri
Nome Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Restituisce
Tipo Description
LlmUtilityServiceGrpc.LlmUtilityServiceStub
Sostituzioni
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeTokens(ComputeTokensRequest request, StreamObserver<ComputeTokensResponse> responseObserver)

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

Restituisce un elenco di token in base al testo di input.

Parametri
Nome Description
request ComputeTokensRequest
responseObserver io.grpc.stub.StreamObserver<ComputeTokensResponse>

countTokens(CountTokensRequest request, StreamObserver<CountTokensResponse> responseObserver)

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

Esegui un conteggio di token.

Parametri
Nome Description
request CountTokensRequest
responseObserver io.grpc.stub.StreamObserver<CountTokensResponse>