Hisoka-X commented on code in PR #7640:
URL: https://github.com/apache/seatunnel/pull/7640#discussion_r1758096237
##########
docs/zh/transform-v2/llm.md:
##########
@@ -8,12 +8,13 @@
## 属性
-| 名称 | 类型 | 是否必须 | 默认值 |
-| ---------------------- | ------ | -------- | ------ |
+| 名称 | 类型 | 是否必须 | 默认值 |
+|------------------------| ------ | -------- |--------|
| model_provider | enum | yes | |
| output_data_type | enum | no | String |
+| output_column_name | string | no | |
Review Comment:
```suggestion
| output_column_name | string | no | llm_output |
```
##########
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/llm/LLMTransformConfig.java:
##########
@@ -37,6 +37,12 @@ public class LLMTransformConfig extends ModelTransformConfig
{
.noDefaultValue()
.withDescription("The row projection field of each
inference");
+ public static final Option<String> OUTPUT_COLUMN_NAME =
+ Options.key("output_column_name")
+ .stringType()
+ .noDefaultValue()
Review Comment:
```suggestion
.defaultValue("llm_output")
```
##########
docs/en/transform-v2/llm.md:
##########
@@ -11,11 +11,12 @@ more.
## Options
| name | type | required | default value |
-| ---------------------- | ------ | -------- | ------------- |
+|------------------------| ------ | -------- | ------------- |
| model_provider | enum | yes | |
| output_data_type | enum | no | String |
+| output_column_name | string | no | String |
Review Comment:
```suggestion
| output_column_name | string | no | llm_output |
```
--
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]