mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
Update CLI reference and add typing
This commit is contained in:
parent
b96e705680
commit
eee6c69f46
3 changed files with 6 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
from typing import Optional
|
||||
|
||||
from llama_models.schema_utils import json_schema_type
|
||||
from pydantic import BaseModel, Field, field_validator
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
@json_schema_type
|
||||
|
|
|
@ -41,7 +41,7 @@ class LocalTGIAdapter(Inference):
|
|||
def client(self) -> InferenceClient:
|
||||
return InferenceClient(model=self.config.url, token=self.config.api_token)
|
||||
|
||||
def _get_endpoint_info(self):
|
||||
def _get_endpoint_info(self) -> Dict[str, Any]:
|
||||
return {**self.client.get_endpoint_info(), "inference_url": self.config.url}
|
||||
|
||||
async def initialize(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue