Skip to content

Commit 8932fd8

Browse files
committed
Remove orphaned duplicate Javadoc before completeBatch()
The cancellable-variant Javadoc block accidentally ended up between completeWithStats() and completeBatch(), causing a NotJavadoc Error Prone warning (two consecutive /** blocks before a single method). The real Javadoc for complete(InferenceParameters, CancellationToken) lives at its method at line 307; the stale copy is removed.
1 parent c2a0d0e commit 8932fd8

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/main/java/net/ladenthin/llama/LlamaModel.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,6 @@ public CompletionResult completeWithStats(InferenceParameters parameters) {
158158
return completionParser.parseCompletionResult(json);
159159
}
160160

161-
/**
162-
* Cancellable variant of {@link #complete(InferenceParameters)}. Runs in streaming mode
163-
* internally so the inference loop can observe a {@link net.ladenthin.llama.callback.CancellationToken#cancel()} call
164-
* from another thread and return early with whatever text was accumulated so far.
165-
* <p>
166-
* The token is rebound to this call (any prior {@code cancel} state is cleared on entry).
167-
* On return &mdash; whether by natural stop or cancellation &mdash; the token is unbound.
168-
* </p>
169-
*
170-
* @param parameters the inference configuration (its {@code stream} flag will be set to true)
171-
* @param token cancellation handle; {@link net.ladenthin.llama.callback.CancellationToken#cancel()} aborts the loop
172-
* @return the text generated up to the point of stop or cancellation
173-
*/
174161
/**
175162
* Dispatch a list of completion requests in parallel and return the generated texts
176163
* in the same order. Each request is sent immediately; the native scheduler dispatches

0 commit comments

Comments
 (0)