Move helper into impl file + fix merging conflicts

This commit is contained in:
Celina Hanouti 2024-09-12 15:55:42 +02:00
parent 04f0b8fe11
commit c8808b4700
3 changed files with 18 additions and 21 deletions

View file

@ -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"]