| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| auth.go | ||
| cache.go | ||
| cors.go | ||
| distributor.go | ||
| gzip.go | ||
| kling_adapter.go | ||
| logger.go | ||
| model-rate-limit.go | ||
| rate-limit.go | ||
| recover.go | ||
| request-id.go | ||
| stats.go | ||
| turnstile-check.go | ||
| utils.go |
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.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| auth.go | Loading commit data... | |
| cache.go | Loading commit data... | |
| cors.go | Loading commit data... | |
| distributor.go | Loading commit data... | |
| gzip.go | Loading commit data... | |
| kling_adapter.go | Loading commit data... | |
| logger.go | Loading commit data... | |
| model-rate-limit.go | Loading commit data... | |
| rate-limit.go | Loading commit data... | |
| recover.go | Loading commit data... | |
| request-id.go | Loading commit data... | |
| stats.go | Loading commit data... | |
| turnstile-check.go | Loading commit data... | |
| utils.go | Loading commit data... |