Elffuss BraidHub

kikocis/llama-stack public

main · 741 BRawPermalink
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the terms described in the LICENSE file in
5# the root directory of this source tree.
6
7from typing import Optional
8
9from llama_models.schema_utils import json_schema_type
10from pydantic import BaseModel, Field
11
12
13class TogetherProviderDataValidator(BaseModel):
14 together_api_key: str
15
16
17@json_schema_type
18class TogetherSafetyConfig(BaseModel):
19 url: str = Field(
20 default="https://api.together.xyz/v1",
21 description="The URL for the Together AI server",
22 )
23 api_key: Optional[str] = Field(
24 default=None,
25 description="The Together AI API Key (default for the distribution, if any)",
26 )