mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-07 04:45:44 +00:00
Improve TGI adapter initialization condition
This commit is contained in:
parent
2ac8e7b901
commit
0964b0a74a
2 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,7 @@ from .tgi import InferenceEndpointAdapter, TGIAdapter
|
|||
async def get_adapter_impl(config: TGIImplConfig, _deps):
|
||||
assert isinstance(config, TGIImplConfig), f"Unexpected config type: {type(config)}"
|
||||
|
||||
if config.is_local_tgi():
|
||||
if config.url is not None:
|
||||
impl = TGIAdapter(config)
|
||||
elif config.is_inference_endpoint():
|
||||
impl = InferenceEndpointAdapter(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue