Skip to content

Commit

Permalink
allow service without name
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jan 3, 2025
1 parent af2d1ca commit c737f35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypha/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.20.46"
"version": "0.20.46.post1"
}
2 changes: 1 addition & 1 deletion hypha/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ServiceInfo(BaseModel):

config: Optional[SerializeAsAny[ServiceConfig]] = None
id: str
name: str
name: Optional[str] = None
type: Optional[str] = "generic"
description: Optional[constr(max_length=1024)] = None # type: ignore
docs: Optional[str] = None
Expand Down
1 change: 1 addition & 0 deletions hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ async def register_service(
service.type = service.type or "*"

service_name = service.id.split(":")[1]
service.name = service.name or service_name
workspace = service.id.split("/")[0]
# Store all the info for client's built-in services
if service_name == "built-in" and service.type == "built-in":
Expand Down

0 comments on commit c737f35

Please sign in to comment.