mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
No need for api_key for Remote providers
This commit is contained in:
parent
0760849a1f
commit
091eca0ba4
1 changed files with 1 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
from enum import Enum
|
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
|
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):
|
class RemoteProviderConfig(BaseModel):
|
||||||
base_url: str = Field(..., description="The base URL for the llama stack provider")
|
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")
|
@validator("base_url")
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue