use crate::utils::error::gateway_error::GatewayError;
use actix_web::{HttpResponse, Result as ActixResult, web};
use tracing::warn;
use super::openai_errors;
pub async fn create_batch() -> ActixResult<HttpResponse> {
warn!("Batch create endpoint is not implemented");
Ok(openai_errors::gateway_error_response(
&GatewayError::not_implemented("Batch create endpoint is not implemented yet"),
))
}
pub async fn list_batches() -> ActixResult<HttpResponse> {
warn!("Batch list endpoint is not implemented");
Ok(openai_errors::gateway_error_response(
&GatewayError::not_implemented("Batch list endpoint is not implemented yet"),
))
}
pub async fn get_batch(batch_id: web::Path<String>) -> ActixResult<HttpResponse> {
warn!(
batch_id = %batch_id.as_str(),
"Batch retrieve endpoint is not implemented"
);
Ok(openai_errors::gateway_error_response(
&GatewayError::not_implemented("Batch retrieve endpoint is not implemented yet"),
))
}
pub async fn cancel_batch(batch_id: web::Path<String>) -> ActixResult<HttpResponse> {
warn!(
batch_id = %batch_id.as_str(),
"Batch cancel endpoint is not implemented"
);
Ok(openai_errors::gateway_error_response(
&GatewayError::not_implemented("Batch cancel endpoint is not implemented yet"),
))
}