Skip to content

Commit

Permalink
Include service connector requirements in custom flavor registration
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi committed Dec 16, 2024
1 parent 384cb8b commit c052c59
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/zenml/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
EventSourceResponse,
EventSourceUpdate,
FlavorFilter,
FlavorRequest,
FlavorResponse,
ModelFilter,
ModelRequest,
Expand Down Expand Up @@ -2201,17 +2200,8 @@ def create_flavor(
"configuration class' docstring."
)

create_flavor_request = FlavorRequest(
source=source,
type=flavor.type,
name=flavor.name,
config_schema=flavor.config_schema,
integration="custom",
user=self.active_user.id,
workspace=self.active_workspace.id,
)

return self.zen_store.create_flavor(flavor=create_flavor_request)
flavor_request = flavor.to_model(integration="custom", is_custom=True)
return self.zen_store.create_flavor(flavor=flavor_request)

def get_flavor(
self,
Expand Down

0 comments on commit c052c59

Please sign in to comment.