Skip to content

Commit 521e962

Browse files
committed
add post slug to v2 parameters
1 parent cfbd000 commit 521e962

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/mindee/InferenceParameters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private InferenceParameters(
5151
String textContext,
5252
String dataSchema
5353
) {
54-
super(modelId, alias, webhookIds, pollingOptions);
54+
super(modelId, alias, webhookIds, pollingOptions, "extraction");
5555
this.rag = rag;
5656
this.rawText = rawText;
5757
this.polygon = polygon;

src/main/java/com/mindee/v2/clientOptions/BaseParameters.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public abstract class BaseParameters {
2323
* Polling options. Set only if having timeout issues.
2424
*/
2525
protected final AsyncPollingOptions pollingOptions;
26+
/**
27+
* Slug of the product type.
28+
*/
29+
private final String slug;
2630

2731
public MultipartEntityBuilder buildHttpBody(MultipartEntityBuilder builder) {
2832
builder.addTextBody("model_id", this.getModelId());

0 commit comments

Comments
 (0)