@@ -16,13 +16,19 @@ class GenerationType(str, Enum):
1616class UserInfo (BaseModel ):
1717 """User information."""
1818
19+ # Authentication result
1920 authenticated : Annotated [bool , Field (description = "Whether the user is authenticated" )]
2021 reason : Annotated [str | None , Field (description = "Reason for failed authentication" )] = None
22+
23+ # Basic information
2124 username : Annotated [str | None , Field (description = "Username" )] = None
2225 email : Annotated [str | None , Field (description = "Email" )] = None
2326 avatar_url : Annotated [str | None , Field (description = "Avatar URL" )] = None
2427 description : Annotated [str | None , Field (description = "Description" )] = None
2528
29+ # Links
30+ modelscope_url : Annotated [str | None , Field (description = "Profile page URL on ModelScope" )] = None
31+
2632
2733class Model (BaseModel ):
2834 """Model information."""
@@ -34,6 +40,9 @@ class Model(BaseModel):
3440 chinese_name : Annotated [str , Field (description = "Chinese name" )]
3541 created_by : Annotated [str , Field (description = "User who created the model" )]
3642
43+ # Links
44+ modelscope_url : Annotated [str , Field (description = "Detail page URL on ModelScope" )]
45+
3746 # Capabilities
3847 support_inference : Annotated [bool , Field (description = "Whether the model supports inference API" )] = False
3948
@@ -58,7 +67,7 @@ class Paper(BaseModel):
5867 abstract_en : Annotated [str , Field (description = "Abstract in English" )]
5968
6069 # Links
61- modelscope_url : Annotated [str , Field (description = "ModelScope page URL" )]
70+ modelscope_url : Annotated [str , Field (description = "Detail page URL on ModelScope " )]
6271 arxiv_url : Annotated [str , Field (description = "Arxiv page URL" )]
6372 pdf_url : Annotated [str , Field (description = "PDF URL" )]
6473 code_link : Annotated [str | None , Field (description = "Code link" )] = None
@@ -81,7 +90,7 @@ class McpServer(BaseModel):
8190 tags : Annotated [list [str ], Field (description = "Tags" )] = []
8291
8392 # Links
84- modelscope_url : Annotated [str , Field (description = "ModelScope page URL" )]
93+ modelscope_url : Annotated [str , Field (description = "Detail page URL on ModelScope " )]
8594
8695 # Metrics
8796 view_count : Annotated [int , Field (description = "View count" )] = 0
0 commit comments