mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-15 22:47:59 +00:00
improved registration flow
This commit is contained in:
parent
39f0c5f544
commit
0eaca98229
10 changed files with 95 additions and 26 deletions
|
@ -36,8 +36,3 @@ class Resource(BaseModel):
|
|||
type: ResourceType = Field(
|
||||
description="Type of resource (e.g. 'model', 'shield', 'memory_bank', etc.)"
|
||||
)
|
||||
|
||||
# If the provider_resource_identifier is not set, set it to the identifier
|
||||
def model_post_init(self, __context) -> None:
|
||||
if self.provider_resource_identifier is None:
|
||||
self.provider_resource_identifier = self.identifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue