From 091eca0ba42b66068343062c73e0d8551ab8682d Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Sun, 25 Aug 2024 21:14:16 -0700 Subject: [PATCH] No need for api_key for Remote providers --- llama_toolchain/distribution/datatypes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llama_toolchain/distribution/datatypes.py b/llama_toolchain/distribution/datatypes.py index 9ae148aed..886e15b62 100644 --- a/llama_toolchain/distribution/datatypes.py +++ b/llama_toolchain/distribution/datatypes.py @@ -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