Skip to content

Commit 9c3aca9

Browse files
Generate modelserving
1 parent d38df9f commit 9c3aca9

File tree

8 files changed

+71
-67
lines changed

8 files changed

+71
-67
lines changed

services/modelserving/src/stackit/modelserving/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

17-
1817
__version__ = "1.0.0"
1918

2019
# Define package exports

services/modelserving/src/stackit/modelserving/api/default_api.py

Lines changed: 61 additions & 60 deletions
Large diffs are not rendered by default.

services/modelserving/src/stackit/modelserving/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
# import models into model package
1817
from stackit.modelserving.models.chat_model_details import ChatModelDetails
1918
from stackit.modelserving.models.create_token_payload import CreateTokenPayload

services/modelserving/src/stackit/modelserving/models/chat_model_details.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import pprint
1919
import re # noqa: F401
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -35,7 +36,7 @@ class ChatModelDetails(BaseModel):
3536
context_length: StrictInt = Field(alias="contextLength")
3637
description: Annotated[str, Field(strict=True, max_length=2000)]
3738
displayed_name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(alias="displayedName")
38-
id: StrictStr = Field(description="generated uuid to identify a model")
39+
id: UUID = Field(description="generated uuid to identify a model")
3940
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(description="huggingface name")
4041
quantization_method: Optional[StrictStr] = Field(default=None, alias="quantizationMethod")
4142
region: StrictStr

services/modelserving/src/stackit/modelserving/models/embedding_model_details.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import pprint
1919
import re # noqa: F401
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -33,7 +34,7 @@ class EmbeddingModelDetails(BaseModel):
3334
category: StrictStr
3435
description: Annotated[str, Field(strict=True, max_length=2000)]
3536
displayed_name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(alias="displayedName")
36-
id: StrictStr = Field(description="generated uuid to identify a model")
37+
id: UUID = Field(description="generated uuid to identify a model")
3738
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(description="huggingface name")
3839
output_dimension: StrictInt = Field(alias="outputDimension")
3940
region: StrictStr

services/modelserving/src/stackit/modelserving/models/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import pprint
1919
import re # noqa: F401
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -33,7 +34,7 @@ class Model(BaseModel):
3334
category: StrictStr
3435
description: Annotated[str, Field(strict=True, max_length=2000)]
3536
displayed_name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(alias="displayedName")
36-
id: StrictStr = Field(description="generated uuid to identify a model")
37+
id: UUID = Field(description="generated uuid to identify a model")
3738
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(description="huggingface name")
3839
region: StrictStr
3940
skus: List[SKU]

services/modelserving/src/stackit/modelserving/models/token.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import re # noqa: F401
2020
from datetime import datetime
2121
from typing import Any, ClassVar, Dict, List, Optional, Set
22+
from uuid import UUID
2223

2324
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2425
from typing_extensions import Annotated, Self
@@ -30,7 +31,7 @@ class Token(BaseModel):
3031
""" # noqa: E501
3132

3233
description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
33-
id: StrictStr
34+
id: UUID
3435
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
3536
region: StrictStr
3637
state: StrictStr

services/modelserving/src/stackit/modelserving/models/token_created.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import re # noqa: F401
2020
from datetime import datetime
2121
from typing import Any, ClassVar, Dict, List, Optional, Set
22+
from uuid import UUID
2223

2324
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2425
from typing_extensions import Annotated, Self
@@ -31,7 +32,7 @@ class TokenCreated(BaseModel):
3132

3233
content: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
3334
description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
34-
id: StrictStr
35+
id: UUID
3536
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
3637
region: StrictStr
3738
state: StrictStr

0 commit comments

Comments
 (0)