Improve types.

This commit is contained in:
Robin Huang 2025-04-22 02:57:21 -07:00
parent 1fa9ced75f
commit daf1fab89b
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: http://localhost:8080/openapi # filename: http://localhost:8080/openapi
# timestamp: 2025-04-22T09:45:21+00:00 # timestamp: 2025-04-22T09:57:11+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: http://localhost:8080/openapi # filename: http://localhost:8080/openapi
# timestamp: 2025-04-22T09:45:21+00:00 # timestamp: 2025-04-22T09:57:11+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: http://localhost:8080/openapi # filename: http://localhost:8080/openapi
# timestamp: 2025-04-22T09:45:21+00:00 # timestamp: 2025-04-22T09:57:11+00:00
from __future__ import annotations from __future__ import annotations
@ -1141,6 +1141,7 @@ class OpenAIImageGenerationRequest(BaseModel):
class Datum1(BaseModel): class Datum1(BaseModel):
b64_json: Optional[str] = Field(None, description='Base64 encoded image data') b64_json: Optional[str] = Field(None, description='Base64 encoded image data')
revised_prompt: Optional[str] = Field(None, description='Revised prompt')
url: Optional[str] = Field(None, description='URL of the image') url: Optional[str] = Field(None, description='URL of the image')