mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 22:34:31 +00:00
updated nvidia distro with recent apis
This commit is contained in:
parent
10faffcb44
commit
26a093a1d4
8 changed files with 197 additions and 16 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# the root directory of this source tree.
|
||||
|
||||
import os
|
||||
from typing import Optional
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from llama_models.schema_utils import json_schema_type
|
||||
from pydantic import BaseModel, Field, SecretStr
|
||||
|
|
@ -48,3 +48,10 @@ class NVIDIAConfig(BaseModel):
|
|||
default=60,
|
||||
description="Timeout for the HTTP requests",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def sample_run_config(cls, **kwargs) -> Dict[str, Any]:
|
||||
return {
|
||||
"url": "https://integrate.api.nvidia.com",
|
||||
"api_key": "${env.NVIDIA_API_KEY}",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue