mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-06-29 21:47:19 +02:00
Fixes BooleanToJsonFormatFlagSerializer
This commit is contained in:
parent
0f73ea75ab
commit
f38a00ebdc
@ -10,9 +10,12 @@ public class BooleanToJsonFormatFlagSerializer extends JsonSerializer<Boolean>{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void serialize(Boolean value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
|
public void serialize(Boolean value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
|
||||||
if(value){
|
|
||||||
gen.writeString("json");
|
gen.writeString("json");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty(Boolean value){
|
||||||
|
return !value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user