use crate::api::openai::{OpenAIClient, OpenAICompatibleModel};
use crate::options::{ModelOptions, TransportOptions};
use crate::providers::Provider;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct DeepSeekModel;
impl OpenAICompatibleModel for DeepSeekModel {}
pub type DeepSeekClient = OpenAIClient<DeepSeekModel>;
pub struct DeepSeek;
impl Provider for DeepSeek {
type Client = DeepSeekClient;
fn create(api_key: String, model: String) -> Self::Client {
Self::create_with_options(
api_key,
ModelOptions::new(model),
TransportOptions::default(),
)
}
fn create_with_options(
api_key: String,
model_options: ModelOptions<DeepSeekModel>,
transport_options: TransportOptions,
) -> Self::Client {
DeepSeekClient::new(
api_key,
"https://api.deepseek.com".to_string(),
model_options,
transport_options,
)
}
}