bullpen 0.1.3

Bullpen: an unofficial library for the Pplx API and Replit Modelfarm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::v1::models::OllamaModel;

#[derive(Debug, Serialize, Deserialize)]
pub struct OllamaEmbeddingRequest {
    pub model: OllamaModel,
    pub prompt: String,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct OllamaEmbeddingResponse {
    pub embedding: Vec<f64>,
}