llama-stack-mirror/llama_stack/providers/remote/inference/clarifai/config.py
2025-03-07 17:12:52 +05:30

25 lines
669 B
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from typing import Any, Dict
from pydantic import BaseModel, Field
from llama_stack.schema_utils import json_schema_type
@json_schema_type
class ClarifaiImplConfig(BaseModel):
PAT: str = Field(
default=None,
description="The Clarifai Personal Access Token (PAT) to use for authentication.",
)
@classmethod
def sample_run_config(cls, **kwargs) -> Dict[str, Any]:
return {
"PAT": "${env.CLARIFAI_PAT}",
}