Remove ROOT_CAUSE_ANALYSIS.md and outdated server logs

This commit is contained in:
geoffsee
2025-08-28 08:26:18 -04:00
parent b606adbe5d
commit c8b3561e36
11 changed files with 220 additions and 547 deletions

View File

@@ -25,10 +25,6 @@ static EMBEDDING_MODEL: Lazy<TextEmbedding> = Lazy::new(|| {
model
});
pub async fn root() -> &'static str {
"Hello, World!"
}
pub async fn embeddings_create(
Json(payload): Json<CreateEmbeddingRequest>,
) -> ResponseJson<serde_json::Value> {

View File

@@ -13,9 +13,6 @@ use tracing;
const DEFAULT_SERVER_HOST: &str = "127.0.0.1";
const DEFAULT_SERVER_PORT: &str = "8080";
async fn root() -> &'static str {
"Hello, World!"
}
async fn embeddings_create(
Json(payload): Json<CreateEmbeddingRequest>,
@@ -162,24 +159,6 @@ mod tests {
use axum::http::StatusCode;
use tower::ServiceExt;
#[tokio::test]
async fn test_root() {
let app = create_app();
let response = app
.oneshot(
axum::http::Request::builder()
.uri("/")
.body(Body::empty())
.unwrap(),
)
.await
.unwrap();
assert_eq!(response.status(), StatusCode::OK);
let body = to_bytes(response.into_body(), usize::MAX).await.unwrap();
assert_eq!(&body[..], b"Hello, World!");
}
#[tokio::test]
async fn test_embeddings_create() {
// Start a test server