Skip to content

fix: prefer raw image-edit final url before asset fallback#558

Open
sands321 wants to merge 1 commit into
chenyme:mainfrom
sands321:fix/image-edit-404-proxy
Open

fix: prefer raw image-edit final url before asset fallback#558
sands321 wants to merge 1 commit into
chenyme:mainfrom
sands321:fix/image-edit-404-proxy

Conversation

@sands321
Copy link
Copy Markdown

Summary

Prefer the upstream raw final image URL for image-edit results and only fall back to asset-derived URLs when raw_url is missing.

This avoids proxy download 404s in local_url mode when the asset-derived content URL is no longer valid.

Testing

  • Ran python3 -m py_compile app/products/openai/images.py
  • Verified the change is limited to image-edit final URL resolution order

Related

  • N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant