Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ humanify <openai|gemini|anthropic|ollama|openrouter> [FLAGS] <INPUT>
* `--json-mode <MODE>` pins a JSON-mode strategy. Options:
`ladder` (default), `openai-json-schema`, `anthropic-native`,
`forced-tool-call`, `tool-call-and-prompt`, `prompt`.
* `-v` enables verbose stderr logging.
* `-v` prints resolved configuration and identifier-level rename steps to stderr.
* `--progress` shows an identifier progress bar on stderr.

Run `humanify --help` for the full reference.

Expand Down
7 changes: 5 additions & 2 deletions src/cli/anthropic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::path::PathBuf;
use crate::cli::preset::{run_preset, PresetArgs, PresetDefaults, ProviderKind};

pub const DEFAULTS: PresetDefaults = PresetDefaults {
name: "anthropic",
base_url: "https://api.anthropic.com/v1",
model: "claude-sonnet-4-6",
api_key_env: "ANTHROPIC_API_KEY",
Expand All @@ -17,9 +18,10 @@ pub struct Args {
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub context_size: usize,
pub json_mode: String,
pub context_size: Option<usize>,
pub json_mode: Option<String>,
pub verbose: bool,
pub progress: bool,
pub timeout_seconds: Option<u64>,
}

Expand All @@ -34,6 +36,7 @@ impl From<Args> for PresetArgs {
context_size: a.context_size,
json_mode: a.json_mode,
verbose: a.verbose,
progress: a.progress,
timeout_seconds: a.timeout_seconds,
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/cli/gemini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::path::PathBuf;
use crate::cli::preset::{run_preset, PresetArgs, PresetDefaults, ProviderKind};

pub const DEFAULTS: PresetDefaults = PresetDefaults {
name: "gemini",
base_url: "https://generativelanguage.googleapis.com/v1beta/openai/",
model: "gemini-3.1-flash-lite",
api_key_env: "GEMINI_API_KEY",
Expand All @@ -17,9 +18,10 @@ pub struct Args {
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub context_size: usize,
pub json_mode: String,
pub context_size: Option<usize>,
pub json_mode: Option<String>,
pub verbose: bool,
pub progress: bool,
pub timeout_seconds: Option<u64>,
}

Expand All @@ -34,6 +36,7 @@ impl From<Args> for PresetArgs {
context_size: a.context_size,
json_mode: a.json_mode,
verbose: a.verbose,
progress: a.progress,
timeout_seconds: a.timeout_seconds,
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/cli/ollama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::path::PathBuf;
use crate::cli::preset::{run_preset, PresetArgs, PresetDefaults, ProviderKind};

pub const DEFAULTS: PresetDefaults = PresetDefaults {
name: "ollama",
base_url: "http://localhost:11434/v1",
model: "qwen3.5:4b",
api_key_env: "",
Expand All @@ -19,9 +20,10 @@ pub struct Args {
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub context_size: usize,
pub json_mode: String,
pub context_size: Option<usize>,
pub json_mode: Option<String>,
pub verbose: bool,
pub progress: bool,
pub timeout_seconds: Option<u64>,
}

Expand All @@ -36,6 +38,7 @@ impl From<Args> for PresetArgs {
context_size: a.context_size,
json_mode: a.json_mode,
verbose: a.verbose,
progress: a.progress,
timeout_seconds: a.timeout_seconds,
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/cli/openai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::path::PathBuf;
use crate::cli::preset::{run_preset, PresetArgs, PresetDefaults, ProviderKind};

pub const DEFAULTS: PresetDefaults = PresetDefaults {
name: "openai",
base_url: "https://api.openai.com/v1",
model: "gpt-5-mini",
api_key_env: "OPENAI_API_KEY",
Expand All @@ -17,9 +18,10 @@ pub struct Args {
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub context_size: usize,
pub json_mode: String,
pub context_size: Option<usize>,
pub json_mode: Option<String>,
pub verbose: bool,
pub progress: bool,
pub timeout_seconds: Option<u64>,
}

Expand All @@ -34,6 +36,7 @@ impl From<Args> for PresetArgs {
context_size: a.context_size,
json_mode: a.json_mode,
verbose: a.verbose,
progress: a.progress,
timeout_seconds: a.timeout_seconds,
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/cli/openrouter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::path::PathBuf;
use crate::cli::preset::{run_preset, PresetArgs, PresetDefaults, ProviderKind};

pub const DEFAULTS: PresetDefaults = PresetDefaults {
name: "openrouter",
base_url: "https://openrouter.ai/api/v1",
model: "openai/gpt-oss-120b",
api_key_env: "OPENROUTER_API_KEY",
Expand All @@ -16,9 +17,10 @@ pub struct Args {
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub context_size: usize,
pub json_mode: String,
pub context_size: Option<usize>,
pub json_mode: Option<String>,
pub verbose: bool,
pub progress: bool,
pub timeout_seconds: Option<u64>,
}

Expand All @@ -33,6 +35,7 @@ impl From<Args> for PresetArgs {
context_size: a.context_size,
json_mode: a.json_mode,
verbose: a.verbose,
progress: a.progress,
timeout_seconds: a.timeout_seconds,
}
}
Expand Down
Loading
Loading