| 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 | |
| 7 | from llama_models.schema_utils import json_schema_type |
| 8 | from pydantic import BaseModel, Field |
| 9 | |
| 10 | |
| 11 | @json_schema_type |
| 12 | class FireworksImplConfig(BaseModel): |
| 13 | url: str = Field( |
| 14 | default="https://api.fireworks.ai/inference", |
| 15 | description="The URL for the Fireworks server", |
| 16 | ) |
| 17 | api_key: str = Field( |
| 18 | default="", |
| 19 | description="The Fireworks.ai API Key", |
| 20 | ) |