[package]
edition = "2021"
name = "anyllm_client"
version = "0.9.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async HTTP client for Anthropic-to-OpenAI translation with retry, SSRF protection, and SSE streaming"
readme = "README.md"
keywords = [
"anthropic",
"openai",
"translation",
"llm",
"client",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/whit3rabbit/anyllm-proxy"
[features]
default = ["ssrf-protection"]
ssrf-protection = []
[lib]
name = "anyllm_client"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "tools"
path = "examples/tools.rs"
[dependencies.anyllm_translate]
version = "0.9.7"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.httpdate]
version = "1"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
"native-tls",
"http2",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"time",
]
[dependencies.tracing]
version = "0.1"
[dependencies.zeroize]
version = "1"
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]