mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 03:47:13 +02:00
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;
|
||||
|
||||
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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user