langdb_core 0.3.2

AI gateway Core for LangDB AI Gateway.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::error::GatewayError;
use actix_web::HttpResponse;
use async_openai::types::responses::CreateResponse;

pub async fn create(request: &CreateResponse) -> Result<HttpResponse, GatewayError> {
    tracing::warn!("Creating response");
    tracing::warn!("Request {:?}", request);

    Ok(HttpResponse::Ok().finish())
}