| 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 .config import FireworksImplConfig |
| 8 | |
| 9 | |
| 10 | async def get_adapter_impl(config: FireworksImplConfig, _deps): |
| 11 | from .fireworks import FireworksInferenceAdapter |
| 12 | |
| 13 | assert isinstance( |
| 14 | config, FireworksImplConfig |
| 15 | ), f"Unexpected config type: {type(config)}" |
| 16 | impl = FireworksInferenceAdapter(config) |
| 17 | await impl.initialize() |
| 18 | return impl |