mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-01 07:36:38 +08:00
* Updated ImageRequest struct and OpenAIModels, added new Dall-E models and size ratios * Fixed suspect `or` * Refactored size ratio calculation in relayImageHelper function * Updated the format of resolution keys in DalleSizeRatios map * Added error handling for unsupported image size in relayImageHelper function * Added validation for number of generated images and defined image generation ratios * Refactored variable name from DalleGenerationImageAmountRatios to DalleGenerationImageAmounts * Added validation for prompt length in relayImageHelper function * Updated model validation and removed size not supported error in relayImageHelper function * Refactored image size and model validation in relayImageHelper function * chore: discard binary file * chore: update impl --------- Co-authored-by: cktsun1031 <65409152+cktsun1031@users.noreply.github.com> Co-authored-by: JustSong <songquanpeng@foxmail.com> |
||
---|---|---|
.. | ||
constants.go | ||
crypto.go | ||
custom-event.go | ||
database.go | ||
email.go | ||
embed-file-system.go | ||
gin.go | ||
group-ratio.go | ||
init.go | ||
logger.go | ||
model-ratio.go | ||
rate-limit.go | ||
redis.go | ||
utils.go | ||
validate.go | ||
verification.go |