mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-06 04:34:57 +00:00
Rename TGI Adapter class
This commit is contained in:
parent
eee6c69f46
commit
3d660ad938
2 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ HF_SUPPORTED_MODELS = {
|
|||
}
|
||||
|
||||
|
||||
class LocalTGIAdapter(Inference):
|
||||
class TGIAdapter(Inference):
|
||||
|
||||
def __init__(self, config: TGIImplConfig) -> None:
|
||||
self.config = config
|
||||
|
@ -232,7 +232,7 @@ class LocalTGIAdapter(Inference):
|
|||
)
|
||||
|
||||
|
||||
class InferenceEndpointAdapter(LocalTGIAdapter):
|
||||
class InferenceEndpointAdapter(TGIAdapter):
|
||||
def __init__(self, config: TGIImplConfig) -> None:
|
||||
super().__init__(config)
|
||||
self.config.url = f"https://api.endpoints.huggingface.cloud/v2/endpoint/{config.hf_namespace}/{config.hf_endpoint_name}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue