Added executable root launcher for audita
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user