Skip to content

Commit

Permalink
Include gRPC port in about API response (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueleo authored Oct 18, 2023
1 parent 7f4da55 commit 66628a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/handlers/http/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub async fn about() -> Json<serde_json::Value> {
let deployment_id = meta.deployment_id.to_string();
let mode = CONFIG.mode_string();
let staging = CONFIG.staging_dir();
let grpc_port = CONFIG.parseable.grpc_port;

let store = CONFIG.storage().get_endpoint();
let is_llm_active = &CONFIG.parseable.open_ai_key.is_some();
Expand All @@ -58,6 +59,7 @@ pub async fn about() -> Json<serde_json::Value> {
"license": "AGPL-3.0-only",
"mode": mode,
"staging": staging,
"grpcPort": grpc_port,
"store": store
}))
}

0 comments on commit 66628a8

Please sign in to comment.