mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Move helper into impl file + fix merging conflicts
This commit is contained in:
parent
04f0b8fe11
commit
c8808b4700
3 changed files with 18 additions and 21 deletions
|
@ -6,8 +6,6 @@
|
|||
|
||||
from typing import Optional
|
||||
|
||||
from huggingface_hub import HfApi
|
||||
|
||||
from llama_models.schema_utils import json_schema_type
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
@ -29,6 +27,3 @@ class TGIImplConfig(BaseModel):
|
|||
|
||||
def is_inference_endpoint(self) -> bool:
|
||||
return self.hf_endpoint_name is not None
|
||||
|
||||
def get_namespace(self) -> str:
|
||||
return HfApi().whoami()["name"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue