deepseek_rs 0.1.1

A Rust library for the DeepSeek API
Documentation

DeepSeek Rust Client

A Rust client library for the DeepSeek API.

Features

  • Chat completions API support
  • Builder pattern for request configuration
  • Type-safe API parameters
  • Async/await support

Installation

Add this to your Cargo.toml:

[dependencies]
deepseek = "0.1.0"

Usage

Here's a basic example of how to use the DeepSeek Rust client:

use deepseek::client::Client;

#[tokio::main]
async fn main() {
    let client = Client::new("your_api_key");
    let request = RequestBody::new_messages(
        vec![Message::new_user_message("Hello".to_string())]
     );
    let response = client.chat_completion(request).await.unwrap();
    println!("{}", response);
}

Documentation

For more detailed information, please refer to the API documentation.

License

This project is licensed under the MIT License.