openai4rs 0.1.9

A non-official Rust crate for calling the OpenAI service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Handles chat completions, including streaming and tool calling.
pub mod chat;
/// Legacy text completion functionality.
pub mod completions;
/// Text embedding functionality.
pub mod embeddings;
/// Model management for listing and retrieving model information.
pub mod models;

/// Re-exports for easier access to module functionalities.
pub use chat::Chat;
pub use chat::ChatParam;
pub use chat::tool_parameters::Parameters;
pub use chat::types::*;
pub use completions::CompletionsParam;
pub use embeddings::EmbeddingsParam;
pub use models::ModelsParam;