Files
new-api/middleware
t0ng7u 90011aa0c9 feat(kling): send both model_name and model fields for upstream compatibility
Some upstream Kling deployments still expect the legacy `model` key
instead of `model_name`.
This change adds the `model` field to `requestPayload` and populates it
with the same value as `model_name`, ensuring the generated JSON works
with both old and new versions.

Changes:
• Added `Model string "json:\"model,omitempty\""` to `requestPayload`
• Set `Model` alongside `ModelName` in `convertToRequestPayload`
• Updated comments to clarify compatibility purpose

Result:
Kling task requests now contain both `model_name` and `model`, removing
integration issues with upstreams that only recognize one of the keys.
2025-07-22 01:21:56 +08:00
..
2025-07-17 22:26:38 +08:00
2023-05-22 00:54:53 +08:00
2023-06-20 22:04:01 +08:00
2024-12-04 23:53:02 +08:00
2024-01-07 22:25:03 +08:00
2023-04-22 21:14:09 +08:00
2024-07-27 17:55:36 +08:00