Skip to content

Commit c39f166

Browse files
models
1 parent 1271776 commit c39f166

File tree

1 file changed

+6
-1
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+6
-1
lines changed

packages/models-library/src/models_library/api_schemas_webserver/auth.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ class ApiKeyCreateRequest(InputSchema):
8383
)
8484

8585

86-
class ApiKeyCreateResponse(ApiKeyCreateRequest):
86+
class ApiKeyCreateResponse(OutputSchema):
8787
id: IDStr
88+
display_name: Annotated[str, Field(..., min_length=3)]
89+
expiration: timedelta | None = Field(
90+
None,
91+
description="Time delta from creation time to expiration. If None, then it does not expire.",
92+
)
8893
api_base_url: HttpUrl
8994
api_key: str
9095
api_secret: str

0 commit comments

Comments
 (0)