[package] name = "mini-openai" version = "0.1.2" edition = "2021" license = "BSD-2-Clause" description = "An OpenAI API client with minimal dependencies" readme = "README.md" repository = "https://github.com/Papierkorb/mini_openai" homepage = "https://github.com/Papierkorb/mini_openai" keywords = ["llm", "openai", "ollama", "ai", "chatgpt"] categories = ["api-bindings", "text-processing"] [features] reqwest = ["dep:reqwest"] ureq = ["dep:ureq"] [dependencies] serde = { version = ">= 1.0", features = ["derive"] } serde_json = ">= 1.0" thiserror = "1.0.64" reqwest = { version = "0.12.8", optional = true } ureq = { version = "2.10.1", optional = true } [dev-dependencies] tokio = { version = "1", features = ["macros", "rt-multi-thread"] } [package.metadata.docs.rs] features = ["reqwest"] [[example]] name = "async-chat-completion" path = "examples/async/chat_completion.rs" required-features = ["reqwest"] [[example]] name = "sync-chat-completion" path = "examples/sync/chat_completion.rs" required-features = ["ureq"] [[example]] name = "async-embedding" path = "examples/async/embedding.rs" required-features = ["reqwest"] [[example]] name = "sync-embedding" path = "examples/sync/embedding.rs" required-features = ["ureq"] [[example]] name = "async-json" path = "examples/async/json.rs" required-features = ["reqwest"] [[example]] name = "sync-json" path = "examples/sync/json.rs" required-features = ["ureq"]