mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-28 15:02:37 +00:00
update log message
This commit is contained in:
parent
fc5ad35e0d
commit
fce362f901
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ class SambaNovaInferenceAdapter(LiteLLMOpenAIMixin):
|
|||
raise RuntimeError(f"Request to {list_models_url} failed") from e
|
||||
available_models = [model.get("id") for model in response.json().get("data", {})]
|
||||
if len(available_models) == 0 or model_id.split("sambanova/")[-1] not in available_models:
|
||||
logger.warning(f"Model {model_id} not found as available in SambaNova models")
|
||||
logger.warning(f"Model {model_id} not available in {self.config.url}/models")
|
||||
return model
|
||||
|
||||
async def initialize(self):
|
||||
|
|
|
@ -65,7 +65,7 @@ class SambaNovaSafetyAdapter(Safety, ShieldsProtocolPrivate, NeedsRequestProvide
|
|||
or "guard" not in shield.provider_resource_id.lower()
|
||||
or shield.provider_resource_id.split("sambanova/")[-1] not in available_models
|
||||
):
|
||||
logger.warning(f"Shield {shield.provider_resource_id} not found as available in SambaNova models")
|
||||
logger.warning(f"Shield {shield.provider_resource_id} not available in {self.config.url}/models")
|
||||
|
||||
async def run_shield(
|
||||
self, shield_id: str, messages: list[Message], params: dict[str, Any] | None = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue