corgy-w commented on code in PR #7584:
URL: https://github.com/apache/seatunnel/pull/7584#discussion_r1744857713
##########
docs/zh/transform-v2/llm.md:
##########
@@ -118,3 +174,83 @@ sink {
}
```
+### Customize the LLM model
+
+```hocon
+env {
+ job.mode = "BATCH"
+}
+
+source {
+ FakeSource {
+ row.num = 5
+ schema = {
+ fields {
+ id = "int"
+ name = "string"
+ }
+ }
+ rows = [
+ {fields = [1, "Jia Fan"], kind = INSERT}
+ {fields = [2, "Hailin Wang"], kind = INSERT}
+ {fields = [3, "Tomas"], kind = INSERT}
+ {fields = [4, "Eric"], kind = INSERT}
+ {fields = [5, "Guangdong Liu"], kind = INSERT}
+ ]
+ result_table_name = "fake"
+ }
+}
+
+transform {
+ LLM {
+ source_table_name = "fake"
+ model_provider = CUSTOM
+ model = gpt-4o-mini
Review Comment:
The original idea was to use the model as a placeholder for ease of use. If
you change the model, you don't need to change the following custom-config.
--
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]