llm-token-visualizer 0.5.0

Flag low-confidence spans in LLM output from token logprobs, and render per-token confidence as terminal, HTML or Markdown
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.88"
name = "llm-token-visualizer"
version = "0.5.0"
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "benches/**/*",
    "README.md",
    "CHANGELOG.md",
    "LICENSE",
    "Cargo.toml",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Flag low-confidence spans in LLM output from token logprobs, and render per-token confidence as terminal, HTML or Markdown"
documentation = "https://docs.rs/llm-token-visualizer"
readme = "README.md"
keywords = [
    "llm",
    "hallucination",
    "logprobs",
    "confidence",
    "cli",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://gitlab.com/mattbusel/LLM-Hallucination-Detection-Script"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/llm-token-visualizer-linux-x86_64.tar.gz"
bin-dir = "llm-token-visualizer-v{ version }-x86_64-unknown-linux-gnu/{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/llm-token-visualizer-windows-x86_64.exe"
pkg-fmt = "bin"

[features]
async-openai = ["dep:async-openai"]
default = ["live"]
live = ["dep:ureq"]

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

[[bin]]
name = "llm-token-visualizer"
path = "src/main.rs"

[[example]]
name = "ci_gate"
path = "examples/ci_gate.rs"

[[example]]
name = "detect"
path = "examples/detect.rs"

[[example]]
name = "html_report"
path = "examples/html_report.rs"

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

[[bench]]
name = "vs_0_4"
path = "benches/vs_0_4.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.async-openai]
version = "0.42"
features = ["chat-completion-types"]
optional = true
default-features = false

[dependencies.clap]
version = "4.0"
features = ["derive"]

[dependencies.colored]
version = "2.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.unicode-segmentation]
version = "1.12"

[dependencies.ureq]
version = "2"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.llm-token-visualizer-prev]
version = "=0.4.0"
default-features = false
package = "llm-token-visualizer"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3.0"