gnodet-bot commented on code in PR #31027: URL: https://github.com/apache/camel/pull/31027#discussion_r4723303018
########## docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc: ########## @@ -12464,6 +12464,16 @@ With `allowUrlBody=true`, a body that does not start with `version: 1` and is no with a space or a relative name, now fails with an `InvalidPayloadException`, as a URL with an unknown scheme already did. Before, it failed with an `IllegalArgumentException`. A URL that cannot be fetched keeps its own exception. +=== camel-huggingface - the token is given to the Python process as an environment variable + +The `authToken` (or the token from the `oauthProfile`) is no longer written into the generated Python handler: it is +given to the Python process as the `HF_TOKEN` environment variable, through the `env` option of the DJL Python engine. +That option is a comma separated list, so a token with a comma now fails when the producer starts. The protected +method `withAuthToken` of `AbstractTaskPredictor` is removed. The `modelId`, `revision` and `device` values are now +written into the handler as escaped Python string literals. + +DJL logs the options of the Python engine at DEBUG level, the `env` option included, so with the +`ai.djl.python.engine` logger at DEBUG the token is written to the log. Keep that logger above DEBUG in production. Review Comment: ⚠️ **Missing blank line before section header.** The paragraph ending here runs directly into `=== camel-solr` on the next line, with no blank line separator. In AsciiDoc, a section header must be preceded by a blank line; without it, renderers may treat it as plain text instead of a heading. ```suggestion `ai.djl.python.engine` logger at DEBUG the token is written to the log. Keep that logger above DEBUG in production. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
