Skip to content

[Bug]: /images/edits reports an error on azure gpt-image-1 #11429

@ZyairYH

Description

@ZyairYH

What happened?

deployment: docker
version: ghcr.io/berriai/litellm:main-v1.72.1-nightly

model_list:
  - model_name: azure/gpt-image-1
    litellm_params:
      model: azure/gpt-image-1
      api_base: os.environ/AZURE_API_BASE_WUS3_03
      api_key: os.environ/AZURE_API_KEY_WUS3_03
curl --location --request POST 'http://127.0.0.1:24000/images/edits' \
--header 'Authorization: Bearer sk-1234' \
--header 'Accept: */*' \
--header 'Host: 127.0.0.1:24000' \
--header 'Connection: keep-alive' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------311314164617804501995051' \
--form 'prompt="组合这两只小猫咪 并且生成一个奶猫版本"' \
--form 'n="1"' \
--form 'model="azure/gpt-image-1"' \
--form 'size="1024x1536"' \
--form 'image=@"/Users/zai/Desktop/WechatIMG51.jpg"' \
--form 'image=@"/Users/zai/Desktop/WechatIMG2583.jpg"' \
--form 'timeout="600"' \
--form 'quality="high"'

Relevant log output

{
    "error": {
        "message": "litellm.APIError: AzureException APIError - '<=' not supported between instances of 'str' and 'int'",
        "type": null,
        "param": null,
        "code": "500"
    }
}

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

main-v1.72.1-nightly

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions