Added executable root launcher for audita

This commit is contained in:
2026-04-21 10:19:39 -05:00
parent e10349302f
commit 8f6c721f06
7 changed files with 87 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
def _build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(prog="audia")
parser = argparse.ArgumentParser(prog="audita")
subparsers = parser.add_subparsers(dest="command", required=True)
process = subparsers.add_parser("process", help="correct a transcript using a glossary")
@@ -65,6 +65,5 @@ def _process(args: argparse.Namespace) -> int:
sys.stdout.write(transcript_to_json(revised))
return 0
except AuditaError as exc:
print(f"audia: error: {exc}", file=sys.stderr)
print(f"audita: error: {exc}", file=sys.stderr)
return 1

View File

@@ -13,7 +13,7 @@ class InstructorLLMClient:
from openai import OpenAI
except ImportError as exc:
raise AuditaLLMError(
"The LLM dependencies are not installed. Run `uv sync` before using audia."
"The LLM dependencies are not installed. Run `uv sync` before using audita."
) from exc
self._instructor = instructor
@@ -42,4 +42,3 @@ def _normalize_openrouter_model(model: str) -> str:
if model.startswith(prefix):
return model[len(prefix) :]
return model