mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 11:57:12 +02:00
Fixes recursive JacksonMarshalling on BodyPublisher
This commit is contained in:
parent
00a3e51a93
commit
f9063484f3
@ -3,6 +3,7 @@ package io.github.amithkoujalgi.ollama4j.core.utils;
|
|||||||
import java.net.http.HttpRequest.BodyPublisher;
|
import java.net.http.HttpRequest.BodyPublisher;
|
||||||
import java.net.http.HttpRequest.BodyPublishers;
|
import java.net.http.HttpRequest.BodyPublishers;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -15,6 +16,7 @@ public interface OllamaRequestBody {
|
|||||||
*
|
*
|
||||||
* @return JSON representation of a OllamaRequest
|
* @return JSON representation of a OllamaRequest
|
||||||
*/
|
*/
|
||||||
|
@JsonIgnore
|
||||||
default BodyPublisher getBodyPublisher(){
|
default BodyPublisher getBodyPublisher(){
|
||||||
try {
|
try {
|
||||||
return BodyPublishers.ofString(
|
return BodyPublishers.ofString(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user