forked from kherud/java-llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathContinuationMode.java
More file actions
33 lines (26 loc) · 980 Bytes
/
Copy pathContinuationMode.java
File metadata and controls
33 lines (26 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-FileCopyrightText: 2026 Bernard Ladenthin <bernard.ladenthin@gmail.com>
//
// SPDX-License-Identifier: MIT
package net.ladenthin.llama.args;
/**
* Channel of a prefilled assistant message that the model continues from
* when {@code continue_final_message} is used on the chat completions endpoint.
*
* <p>Maps to the string-valued branch of llama.cpp's
* {@code common_chat_continuation_parse}. The boolean form
* ({@code true}/{@code false}) is exposed separately via
* {@code InferenceParameters.setContinueFinalMessage(boolean)}.
*/
public enum ContinuationMode {
/** Continue inside the reasoning channel of the last assistant message. */
REASONING_CONTENT("reasoning_content"),
/** Continue inside the content channel of the last assistant message. */
CONTENT("content");
private final String value;
ContinuationMode(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}