fix: "No connection adapters were found" routers/images.py (#19435)

This commit is contained in:
Alexandr Promakh 2025-11-24 19:51:52 +00:00 committed by GitHub
parent e567f42020
commit a7b611c0e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -549,9 +549,7 @@ async def image_generations(
if ENABLE_FORWARD_USER_INFO_HEADERS: if ENABLE_FORWARD_USER_INFO_HEADERS:
headers = include_user_info_headers(headers, user) headers = include_user_info_headers(headers, user)
url = ( url = f"{request.app.state.config.IMAGES_OPENAI_API_BASE_URL}/images/generations"
f"{request.app.state.config.IMAGES_OPENAI_API_BASE_URL}/images/generations",
)
if request.app.state.config.IMAGES_OPENAI_API_VERSION: if request.app.state.config.IMAGES_OPENAI_API_VERSION:
url = f"{url}?api-version={request.app.state.config.IMAGES_OPENAI_API_VERSION}" url = f"{url}?api-version={request.app.state.config.IMAGES_OPENAI_API_VERSION}"