mod embeddings;
mod schema;
mod utils;
pub use embeddings::*;
pub use schema::*;
use crate::services::{PredictionService, PredictorService};
use crate::beta::remote::RemotePredictionService;
#[derive(Clone)]
pub struct OpenAIClient {
pub embeddings: EmbeddingService,
}
impl OpenAIClient {
pub fn new(
predictors: PredictorService,
predictions: PredictionService,
remote_predictions: RemotePredictionService,
) -> Self {
Self {
embeddings: EmbeddingService::new(predictors, predictions, remote_predictions),
}
}
}