Show server version in logs and UI
This commit is contained in:
@@ -11,6 +11,7 @@ from datetime import datetime, timezone
|
||||
from fastapi import APIRouter
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
from app.config import APP_VERSION
|
||||
from app.models import (
|
||||
AgentInfo,
|
||||
HealthResponse,
|
||||
@@ -49,6 +50,7 @@ def get_status():
|
||||
server=ServerInfo(
|
||||
status="up",
|
||||
started_at=status_service.server_started_at(),
|
||||
version=APP_VERSION,
|
||||
),
|
||||
agent=agent_info,
|
||||
queue=QueueCounts(**counts),
|
||||
|
||||
@@ -9,6 +9,7 @@ import os
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
|
||||
APP_VERSION = "1.0.0"
|
||||
DEFAULT_EMPTY_RESPONSE = "call this tool `get_user_request` again to fetch latest user input..."
|
||||
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ class UpdateInstructionRequest(BaseModel):
|
||||
class ServerInfo(BaseModel):
|
||||
status: str
|
||||
started_at: datetime
|
||||
version: str
|
||||
|
||||
|
||||
class AgentInfo(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user