Fetch the resolved inference route bundle from the server.
(endpoint: &str)
| 840 | |
| 841 | /// Fetch the resolved inference route bundle from the server. |
| 842 | pub async fn fetch_inference_bundle(endpoint: &str) -> Result<GetInferenceBundleResponse> { |
| 843 | debug!(endpoint = %endpoint, "Fetching inference route bundle"); |
| 844 | |
| 845 | let mut client = connect_inference(endpoint).await?; |
| 846 | |
| 847 | let response = client |
| 848 | .get_inference_bundle(GetInferenceBundleRequest {}) |
| 849 | .await |
| 850 | .into_diagnostic()?; |
| 851 | |
| 852 | Ok(response.into_inner()) |
| 853 | } |
no test coverage detected