1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Gem-rs: A Rust library for interacting with the Gemini API
//!
//! This library serves as a wrapper around the Gemini API, providing support for
//! streaming, file uploads, and various other functionalities. It is designed to
//! facilitate easy integration of Gemini API capabilities into Rust projects.
//!
//! # Features
//!
//! - Streaming support for real-time interactions
//! - File and image upload capabilities
//! - Caching mechanism for efficient file handling
//! - Comprehensive error handling and logging
//! - Support for multiple Gemini API models
//!
//! # Modules
//!
//! - `api`: Contains API-related constants and model definitions
//! - `client`: Provides the main client interface for interacting with the Gemini API
//! - `errors`: Defines custom error types for the library
//! - `types`: Contains various type definitions used throughout the library
//! - `utils`: Utility functions for internal use
use env;
/// Initializes the logger for the Gem-rs library.
///
/// This function sets up the logging system using `pretty_env_logger` and sets
/// the default log level to "info". It's recommended to call this function at
/// the start of your application to enable logging for the Gem-rs library.
///
/// # Example
///
/// ```
/// use gem_rs::init_log;
///
/// fn main() {
/// init_log();
/// // Your application code here
/// }
/// ```