No need for api_key for Remote providers

This commit is contained in:
Ashwin Bharambe 2024-08-25 21:14:16 -07:00
parent 0760849a1f
commit 091eca0ba4

View file

@ -5,7 +5,7 @@
# the root directory of this source tree.
from enum import Enum
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List
from llama_models.schema_utils import json_schema_type
@ -59,9 +59,6 @@ Fully-qualified name of the module to import. The module is expected to have:
class RemoteProviderConfig(BaseModel):
base_url: str = Field(..., description="The base URL for the llama stack provider")
api_key: Optional[str] = Field(
..., description="API key, if needed, for the provider"
)
@validator("base_url")
@classmethod