mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 16:09:47 +00:00
23 lines
641 B
Python
23 lines
641 B
Python
from typing import Any, Dict, Optional
|
|
|
|
from llama_models.schema_utils import json_schema_type
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
@json_schema_type
|
|
class SambanovaImplConfig(BaseModel):
|
|
url: str = Field(
|
|
default="https://api.sambanova.ai/v1",
|
|
description="The URL for the SambaNova API server",
|
|
)
|
|
api_key: Optional[str] = Field(
|
|
default=None,
|
|
description="The SambaNova API Key",
|
|
)
|
|
|
|
@classmethod
|
|
def sample_run_config(cls, **kwargs) -> Dict[str, Any]:
|
|
return {
|
|
"url": "https://api.sambanova.ai/v1",
|
|
"api_key": "${env.SAMBANOVA_API_KEY}",
|
|
}
|