Fireworks basic integration (#39)

This commit is contained in:
Yufei (Benny) Chen 2024-08-25 08:05:52 -07:00 committed by GitHub
parent f812648aca
commit 40ca8e21bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 358 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# 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 llama_models.schema_utils import json_schema_type
from pydantic import BaseModel, Field
@json_schema_type
class FireworksImplConfig(BaseModel):
url: str = Field(
default="https://api.fireworks.api/inference",
description="The URL for the Fireworks server",
)
api_key: str = Field(
default="",
description="The Fireworks.ai API Key",
)