mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-11-04 02:20:50 +01:00 
			
		
		
		
	Fixes JSON Binding for OllamaChatMessageRole
This commit is contained in:
		@@ -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){
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user