Fixes JSON Binding for OllamaChatMessageRole

This commit is contained in:
Markus Klenke 2024-02-10 00:22:55 +00:00
parent a635dd9be2
commit 4ca6eef8fd

View File

@ -1,14 +1,16 @@
package io.github.amithkoujalgi.ollama4j.core.models.chat;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Defines the possible Chat Message roles.
*/
public enum OllamaChatMessageRole {
SYSTEM("system"),
USER("user"),
ASSISTANT("assisstant");
ASSISTANT("assistant");
@SuppressWarnings("unused")
@JsonValue
private String roleName;
private OllamaChatMessageRole(String roleName){