Files
one-api/common
ckt1031 1d15157f7d feat: keep sync with dall-e updates (#679)
* 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>
2023-11-17 20:03:16 +08:00
..
2023-10-22 20:39:49 +08:00
2023-04-22 20:39:27 +08:00
2023-10-22 18:38:29 +08:00
2023-04-22 20:39:27 +08:00
2023-06-22 10:59:01 +08:00
2023-09-17 15:39:46 +08:00
2023-04-22 20:39:27 +08:00
2023-10-22 18:38:29 +08:00
2023-04-22 20:39:27 +08:00
2023-04-22 20:39:27 +08:00