Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.68 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.68 KB

LeapfrogAI Repeater Backend

A LeapfrogAI API-compatible repeater backend that simply parrots the input it is provided back to the user. This is primarily used for quick-testing the API.

The repeater backend is used to verify that the API is able to both load configs for and send inputs to a very simple backend. The repeater backend fulfills this role by returning the input it recieves as output.

Usage

Pre-Requisites

See the LeapfrogAI documentation website for system requirements and dependencies.

Dependent Components

  • Have the LeapfrogAI API deployed, running, and accessible in order to provide a fully RESTful application

Deployment

To build and deploy the repeater backend Zarf package into an existing UDS Kubernetes cluster:

Important

Execute the following Make targets from the root of the LeapfrogAI repository

make build-repeater LOCAL_VERSION=dev
uds zarf package deploy packages/repeater/zarf-package-repeater-*-dev.tar.zst --confirm

Local Development

To run the repeater backend locally:

Important

Execute the following commands from this sub-directory

# Install dependencies and start the model backend
make dev

Now the basic API tests can be run in full with the following commands.

Important

Execute the following commands from from the root of the LeapfrogAI repository

export LFAI_RUN_REPEATER_TESTS=true    # this is needed to run the tests that require the repeater model, otherwise they get skipped
pytest tests/pytest/test_api_auth.py