* feat(sd): Add Z.AI GLM-Image model support
Add the new GLM-Image model to the Z.AI image generation source:
- Add 'glm-image' to the model dropdown with friendly display name
- Handle GLM-Image's requirement for dimensions in multiples of 32
(vs CogView's multiples of 16)
- Show quality dropdown for GLM-Image (supports standard/hd)
The GLM-Image model uses the same API endpoint as CogView
but has different dimension constraints.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(sd): Enhance Z.AI GLM-Image support
- Use regex for GLM-Image model detection (futureproofing)
- Skip 2^21 pixel limit for GLM-Image (CogView-specific)
- Add Z.AI recommended resolutions (1280x1280, 1568x1056, etc.)
- Add "Use Coding API" toggle for GLM Coding Plan users
- Add better error logging for image fetch debugging
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor(sd): Address PR review feedback for Z.AI GLM-Image
- Remove custom zai_coding_api setting, use existing oai_settings.zai_endpoint
- Always use Common API for image generation (avoids rate limits)
- Keep ZAI_ENDPOINT import for consistency with other extensions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: always use Common API for Z.AI image generation
Removes conditional endpoint selection since we decided to always use
Common API for image generation (Coding API has stricter rate limits).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* It's not only cogview anymore
* Remove unused param from request payload
* Remove redundant debug logs
* Loosen the check on image quality data attribute
* Bring back coding API notice
---------
Co-authored-by: mschienbein <mschienbein@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* Add comfyrunpod generation endpoints.
Get a bunch of settings added.
Probably get runpod api secret stored properly.
sending to runpod.
Correct workflow wrapping for runpod.
* Reuse comfyui workflow setting block for runpod.
* Update API key url to point to runpod settings
* Remove debug print.
* Combine normal and runpod comfyui generation functions
* Remove unused server endpoints for runpod.
* Remove debug prints from server.
* Remove redundant switch case.
* Check for url to see if image generation is possible for comfy and comfy runpod.
* lint
* Correct/update doc comments.
* Make runpod serverless a sub-type under comfyui source in the UI.
* Set comfy_type in stable-diffusion defaultSettings
* Allow loading comfy workflows even if url isnt set yet.
* Change default runpod url to template example
* Rename runpod api key to comfy_runpod
* Handle default switches separately from standard now that default setting is ensured.
* Update runpod api key name on server.
* Move example runpod url to placeholder.
* lint
* Remove incorrect comment.
* Hide toasts remote models toasts
* React to key updates
* Add type annotation for data and improve workflow handling in generate endpoint
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* fixed merge conflicts
* Supported max tokens + fixed wrong image model mapping
* fixed merge conflicts
* fixed merge conflicts
* updated the logic
* updated the logic
* replaced hard coded reasoning_effort mode list with a dynamic function
* replaced hard coded reasoning_effort model list with a dynamic function
* Fix eslint
* Adjust reasoning effort logic
* Code clean-up
* Add logo
* Add inline image quality
* Fix multimodal models list
* Fix seed not passed
* Add "detail" error parser
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>