Skip to content

Commit

Permalink
Add an ilab API module for InstructLab
Browse files Browse the repository at this point in the history
This builds on the `crucible_svc` layer in cloud-bulldozer#122 to add a backend API.
  • Loading branch information
dbutenhof committed Oct 17, 2024
1 parent 26384d1 commit 956d9c3
Show file tree
Hide file tree
Showing 4 changed files with 780 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ indice=
username=
password=

[<product>.crucible]
url=
username=
password=

[ocp-server]
port=8000

Expand Down Expand Up @@ -53,7 +58,7 @@ indice=
username=
password=
```
**Note: The below applies only for the elastic search at the moment**
**Note: The below applies only for the elastic search at the moment**
If you also have an archived internal instance that keeps track of older data, it can be specified with '.internal' suffix. Example of our `OCP` internal archived instance's configuration.
```toml
[ocp.elasticsearch.internal]
Expand Down
5 changes: 5 additions & 0 deletions backend/app/api/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from fastapi import APIRouter

from app.api.v1.endpoints.ocp import results
Expand All @@ -11,6 +12,7 @@
from app.api.v1.endpoints.telco import telcoJobs
from app.api.v1.endpoints.telco import telcoGraphs
from app.api.v1.endpoints.ocm import ocmJobs
from app.api.v1.endpoints.ilab import ilab


router = APIRouter()
Expand Down Expand Up @@ -39,3 +41,6 @@

# OCM endpoint
router.include_router(ocmJobs.router, tags=['ocm'])

# InstructLab endpoint
router.include_router(router=ilab.router, tags=['ilab'])
Loading

0 comments on commit 956d9c3

Please sign in to comment.