Skip to content

Commit 099214f

Browse files
authored
Merge pull request #12 from Pr3roxDLC/master
Fix broken json schema option
2 parents 5392843 + 79804a0 commit 099214f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/nl/dannyj/mistral/models/completion/tool/JsonSchema.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package nl.dannyj.mistral.models.completion.tool;
1818

1919
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.annotation.JsonRawValue;
2021
import jakarta.validation.constraints.NotNull;
2122
import lombok.AllArgsConstructor;
2223
import lombok.Builder;
@@ -60,6 +61,7 @@ public class JsonSchema {
6061
* @return The string representing the JSON schema.
6162
*/
6263
@NotNull
64+
@JsonRawValue
6365
@JsonProperty("schema")
6466
private String schema;
6567

@@ -71,4 +73,7 @@ public class JsonSchema {
7173
*/
7274
@Builder.Default
7375
private boolean strict = false;
76+
77+
78+
7479
}

0 commit comments

Comments
 (0)