This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 854655d9c283 Regen
854655d9c283 is described below
commit 854655d9c2831102e0741f1d76589f3f64ad0931
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Mar 2 14:26:20 2026 +0100
Regen
---
.../camel/catalog/components/huggingface.json | 42 +++++++++++-----------
.../dsl/HuggingfaceComponentBuilderFactory.java | 19 ++++++++++
.../dsl/HuggingFaceEndpointBuilderFactory.java | 32 +++++++++++++++++
3 files changed, 73 insertions(+), 20 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/huggingface.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/huggingface.json
index 24de317f56e4..0be8cb797bbd 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/huggingface.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/huggingface.json
@@ -35,17 +35,18 @@
"modelId": { "index": 8, "kind": "property", "displayName": "Model Id",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Hugging Face model ID
(e.g., distilbert-base-uncased-finetuned-sst-2-english)" },
"modelLoadingTimeout": { "index": 9, "kind": "property", "displayName":
"Model Loading Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model loading timeout in
seconds, if negative then use default (240 seconds)" },
"multiLabel": { "index": 10, "kind": "property", "displayName": "Multi
Label", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Allow multi-label
classifications for zero-shot tasks" },
- "predictorBean": { "index": 11, "kind": "property", "displayName":
"Predictor Bean", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Bean name of a custom
TaskPredictor implementation (for tasks not covered b [...]
- "predictTimeout": { "index": 12, "kind": "property", "displayName":
"Predict Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Predict timeout in
seconds, if negative then use default (120 seconds)" },
- "revision": { "index": 13, "kind": "property", "displayName": "Revision",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model revision or branch
(default: main)" },
- "systemPrompt": { "index": 14, "kind": "property", "displayName": "System
Prompt", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Initial system prompt
for chat tasks (e.g., 'You are a helpful assistant name [...]
- "temperature": { "index": 15, "kind": "property", "displayName":
"Temperature", "group": "producer", "label": "", "required": false, "type":
"number", "javaType": "float", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Temperature for sampling
(0.0-1.0)" },
- "topK": { "index": 16, "kind": "property", "displayName": "Top K",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 5, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Top-k parameter for
classification tasks" },
- "userRole": { "index": 17, "kind": "property", "displayName": "User Role",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "user", "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Role for user messages
in chat history (e.g., 'user' or 'human')" },
- "autowiredEnabled": { "index": 18, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
- "healthCheckConsumerEnabled": { "index": 19, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
- "healthCheckProducerEnabled": { "index": 20, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
- "oauthProfile": { "index": 21, "kind": "property", "displayName": "Oauth
Profile", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "OAuth profile name for
obtaining an access token via the OAuth 2.0 Cl [...]
+ "pooling": { "index": 11, "kind": "property", "displayName": "Pooling",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Whether to pool the
predictor (keep the Python process alive) or create a new one for each request"
},
+ "predictorBean": { "index": 12, "kind": "property", "displayName":
"Predictor Bean", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Bean name of a custom
TaskPredictor implementation (for tasks not covered b [...]
+ "predictTimeout": { "index": 13, "kind": "property", "displayName":
"Predict Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Predict timeout in
seconds, if negative then use default (120 seconds)" },
+ "revision": { "index": 14, "kind": "property", "displayName": "Revision",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model revision or branch
(default: main)" },
+ "systemPrompt": { "index": 15, "kind": "property", "displayName": "System
Prompt", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Initial system prompt
for chat tasks (e.g., 'You are a helpful assistant name [...]
+ "temperature": { "index": 16, "kind": "property", "displayName":
"Temperature", "group": "producer", "label": "", "required": false, "type":
"number", "javaType": "float", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Temperature for sampling
(0.0-1.0)" },
+ "topK": { "index": 17, "kind": "property", "displayName": "Top K",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 5, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Top-k parameter for
classification tasks" },
+ "userRole": { "index": 18, "kind": "property", "displayName": "User Role",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "user", "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Role for user messages
in chat history (e.g., 'user' or 'human')" },
+ "autowiredEnabled": { "index": 19, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
+ "healthCheckConsumerEnabled": { "index": 20, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
+ "healthCheckProducerEnabled": { "index": 21, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
+ "oauthProfile": { "index": 22, "kind": "property", "displayName": "Oauth
Profile", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "OAuth profile name for
obtaining an access token via the OAuth 2.0 Cl [...]
},
"headers": {
"CamelHuggingFaceOutput": { "index": 0, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The output from the model", "constantName":
"org.apache.camel.component.huggingface.HuggingFaceConstants#OUTPUT" }
@@ -61,14 +62,15 @@
"modelId": { "index": 7, "kind": "parameter", "displayName": "Model Id",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Hugging Face model ID
(e.g., distilbert-base-uncased-finetuned-sst-2-english)" },
"modelLoadingTimeout": { "index": 8, "kind": "parameter", "displayName":
"Model Loading Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model loading timeout in
seconds, if negative then use default (240 seconds)" },
"multiLabel": { "index": 9, "kind": "parameter", "displayName": "Multi
Label", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Allow multi-label
classifications for zero-shot tasks" },
- "predictorBean": { "index": 10, "kind": "parameter", "displayName":
"Predictor Bean", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Bean name of a custom
TaskPredictor implementation (for tasks not covered [...]
- "predictTimeout": { "index": 11, "kind": "parameter", "displayName":
"Predict Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Predict timeout in
seconds, if negative then use default (120 seconds)" },
- "revision": { "index": 12, "kind": "parameter", "displayName": "Revision",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model revision or branch
(default: main)" },
- "systemPrompt": { "index": 13, "kind": "parameter", "displayName": "System
Prompt", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Initial system prompt
for chat tasks (e.g., 'You are a helpful assistant nam [...]
- "temperature": { "index": 14, "kind": "parameter", "displayName":
"Temperature", "group": "producer", "label": "", "required": false, "type":
"number", "javaType": "float", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Temperature for sampling
(0.0-1.0)" },
- "topK": { "index": 15, "kind": "parameter", "displayName": "Top K",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 5, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Top-k parameter for
classification tasks" },
- "userRole": { "index": 16, "kind": "parameter", "displayName": "User
Role", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "user", "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Role for user messages
in chat history (e.g., 'user' or 'human')" },
- "lazyStartProducer": { "index": 17, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "oauthProfile": { "index": 18, "kind": "parameter", "displayName": "Oauth
Profile", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "OAuth profile name for
obtaining an access token via the OAuth 2.0 C [...]
+ "pooling": { "index": 10, "kind": "parameter", "displayName": "Pooling",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Whether to pool the
predictor (keep the Python process alive) or create a new one for each request"
},
+ "predictorBean": { "index": 11, "kind": "parameter", "displayName":
"Predictor Bean", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Bean name of a custom
TaskPredictor implementation (for tasks not covered [...]
+ "predictTimeout": { "index": 12, "kind": "parameter", "displayName":
"Predict Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Predict timeout in
seconds, if negative then use default (120 seconds)" },
+ "revision": { "index": 13, "kind": "parameter", "displayName": "Revision",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Model revision or branch
(default: main)" },
+ "systemPrompt": { "index": 14, "kind": "parameter", "displayName": "System
Prompt", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Initial system prompt
for chat tasks (e.g., 'You are a helpful assistant nam [...]
+ "temperature": { "index": 15, "kind": "parameter", "displayName":
"Temperature", "group": "producer", "label": "", "required": false, "type":
"number", "javaType": "float", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Temperature for sampling
(0.0-1.0)" },
+ "topK": { "index": 16, "kind": "parameter", "displayName": "Top K",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 5, "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Top-k parameter for
classification tasks" },
+ "userRole": { "index": 17, "kind": "parameter", "displayName": "User
Role", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "user", "configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "Role for user messages
in chat history (e.g., 'user' or 'human')" },
+ "lazyStartProducer": { "index": 18, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
+ "oauthProfile": { "index": 19, "kind": "parameter", "displayName": "Oauth
Profile", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.huggingface.HuggingFaceConfiguration",
"configurationField": "configuration", "description": "OAuth profile name for
obtaining an access token via the OAuth 2.0 C [...]
}
}
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HuggingfaceComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HuggingfaceComponentBuilderFactory.java
index 1dbdec98feae..f3734719f6c0 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HuggingfaceComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HuggingfaceComponentBuilderFactory.java
@@ -237,6 +237,24 @@ public interface HuggingfaceComponentBuilderFactory {
return this;
}
+
+ /**
+ * Whether to pool the predictor (keep the Python process alive) or
+ * create a new one for each request.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param pooling the value to set
+ * @return the dsl builder
+ */
+ default HuggingfaceComponentBuilder pooling(boolean pooling) {
+ doSetProperty("pooling", pooling);
+ return this;
+ }
+
/**
* Bean name of a custom TaskPredictor implementation (for tasks not
* covered by built-in predictors).
@@ -458,6 +476,7 @@ public interface HuggingfaceComponentBuilderFactory {
case "modelId": getOrCreateConfiguration((HuggingFaceComponent)
component).setModelId((java.lang.String) value); return true;
case "modelLoadingTimeout":
getOrCreateConfiguration((HuggingFaceComponent)
component).setModelLoadingTimeout((int) value); return true;
case "multiLabel": getOrCreateConfiguration((HuggingFaceComponent)
component).setMultiLabel((boolean) value); return true;
+ case "pooling": getOrCreateConfiguration((HuggingFaceComponent)
component).setPooling((boolean) value); return true;
case "predictorBean":
getOrCreateConfiguration((HuggingFaceComponent)
component).setPredictorBean((java.lang.String) value); return true;
case "predictTimeout":
getOrCreateConfiguration((HuggingFaceComponent)
component).setPredictTimeout((int) value); return true;
case "revision": getOrCreateConfiguration((HuggingFaceComponent)
component).setRevision((java.lang.String) value); return true;
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HuggingFaceEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HuggingFaceEndpointBuilderFactory.java
index d74a890ce022..c6c46adff105 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HuggingFaceEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HuggingFaceEndpointBuilderFactory.java
@@ -252,6 +252,38 @@ public interface HuggingFaceEndpointBuilderFactory {
doSetProperty("multiLabel", multiLabel);
return this;
}
+ /**
+ * Whether to pool the predictor (keep the Python process alive) or
+ * create a new one for each request.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param pooling the value to set
+ * @return the dsl builder
+ */
+ default HuggingFaceEndpointBuilder pooling(boolean pooling) {
+ doSetProperty("pooling", pooling);
+ return this;
+ }
+ /**
+ * Whether to pool the predictor (keep the Python process alive) or
+ * create a new one for each request.
+ *
+ * The option will be converted to a <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer
+ *
+ * @param pooling the value to set
+ * @return the dsl builder
+ */
+ default HuggingFaceEndpointBuilder pooling(String pooling) {
+ doSetProperty("pooling", pooling);
+ return this;
+ }
/**
* Bean name of a custom TaskPredictor implementation (for tasks not
* covered by built-in predictors).