genai 0.1.12

Multi-AI Providers Library for Rust. (Ollama, OpenAI, Anthropic, Groq, Gemini, ...)
Documentation
[dependencies.bytes]
version = "1.6"

[dependencies.derive_more]
features = ["from", "display"]
version = "1.0.0"

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.futures]
version = "0.3"

[dependencies.reqwest]
features = ["json"]
version = "0.12"

[dependencies.reqwest-eventsource]
version = "0.6"

[dependencies.serde]
features = ["derive", "rc"]
version = "1"

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
features = ["full"]
version = "1"

[dependencies.tokio-stream]
version = "0.1"

[dependencies.value-ext]
version = "0.0.3"

[[example]]
name = "c00-readme"
path = "examples/c00-readme.rs"

[[example]]
name = "c01-conv"
path = "examples/c01-conv.rs"

[[example]]
name = "c02-auth"
path = "examples/c02-auth.rs"

[[example]]
name = "c03-mapper"
path = "examples/c03-mapper.rs"

[[example]]
name = "c04-chat-options"
path = "examples/c04-chat-options.rs"

[[example]]
name = "c05-model-names"
path = "examples/c05-model-names.rs"

[lib]
name = "genai"
path = "src/lib.rs"

[lints.rust]
unsafe_code = "forbid"

[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = "Multi-AI Providers Library for Rust. (Ollama, OpenAI, Anthropic, Groq, Gemini, ...)"
edition = "2021"
homepage = "https://github.com/jeremychone/rust-genai"
keywords = ["generative-ai", "openai", "chatgpt", "gemini", "ollama"]
license = "MIT OR Apache-2.0"
name = "genai"
readme = "README.md"
repository = "https://github.com/jeremychone/rust-genai"
rust-version = "1.79"
version = "0.1.12"

[[test]]
name = "tests_p_anthropic"
path = "tests/tests_p_anthropic.rs"

[[test]]
name = "tests_p_cohere"
path = "tests/tests_p_cohere.rs"

[[test]]
name = "tests_p_gemini"
path = "tests/tests_p_gemini.rs"

[[test]]
name = "tests_p_groq"
path = "tests/tests_p_groq.rs"

[[test]]
name = "tests_p_ollama"
path = "tests/tests_p_ollama.rs"

[[test]]
name = "tests_p_openai"
path = "tests/tests_p_openai.rs"