1. 26 Jul, 2025 9 commits
  2. 25 Jul, 2025 4 commits
  3. 24 Jul, 2025 3 commits
  4. 23 Jul, 2025 7 commits
  5. 22 Jul, 2025 14 commits
  6. 21 Jul, 2025 3 commits
    • feat(kling): send both `model_name` and `model` fields for upstream compatibility · d2ef70f6
      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.
      t0ng7u committed
    • feat(middleware): enhance Kling request adapter to support both 'model' and 'model_name' fields · 200faadb
      Previously, the KlingRequestConvert middleware only extracted model name from
      the 'model_name' field, which caused 503 errors when requests used the 'model'
      field instead. This enhancement improves API compatibility by supporting both
      field names.
      
      Changes:
      - Modified KlingRequestConvert() to check for 'model' field if 'model_name' is empty
      - Maintains backward compatibility with existing 'model_name' usage
      - Fixes "no available channels for model" error when model field was not recognized
      
      This resolves issues where valid Kling API requests were failing due to field
      name mismatches, improving the overall user experience for video generation APIs.
      t0ng7u committed