forked from Mirror/ollama4j
Fixes JSON Binding for OllamaChatMessageRole
This commit is contained in:
parent
a635dd9be2
commit
4ca6eef8fd
@ -1,14 +1,16 @@
|
|||||||
package io.github.amithkoujalgi.ollama4j.core.models.chat;
|
package io.github.amithkoujalgi.ollama4j.core.models.chat;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the possible Chat Message roles.
|
* Defines the possible Chat Message roles.
|
||||||
*/
|
*/
|
||||||
public enum OllamaChatMessageRole {
|
public enum OllamaChatMessageRole {
|
||||||
SYSTEM("system"),
|
SYSTEM("system"),
|
||||||
USER("user"),
|
USER("user"),
|
||||||
ASSISTANT("assisstant");
|
ASSISTANT("assistant");
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@JsonValue
|
||||||
private String roleName;
|
private String roleName;
|
||||||
|
|
||||||
private OllamaChatMessageRole(String roleName){
|
private OllamaChatMessageRole(String roleName){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user