🐛 health endpoint
This commit is contained in:
parent
c5e21dbdb2
commit
d81aa87c6e
1 changed files with 6 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ from contextlib import asynccontextmanager
|
|||
from typing import List, Optional
|
||||
|
||||
from ..core.main import ContextProviderDescription, SlashCommandDescription
|
||||
from ..core.config import ContinueConfig, SlashCommand
|
||||
from ..core.config import ContinueConfig
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
|
@ -68,6 +68,11 @@ def get_context_providers() -> List[ContextProviderDescription]:
|
|||
return root_config.get_context_provider_descriptions()
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
def health_check():
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue