mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-11-10 16:11:59 +00:00
Only chat completions, embeddings and SearXNG classified transport failures, and none logged the cause, so a report showed only reqwest's top-level message. Other requests, from TTS and image generation to tokenizer downloads, imports, update checks and Git, turned the same failures into internal errors with their own text. The classifier moves from tt-adapter-provider-http to tt-adapter-http (upstream), and every outbound request goes through it. It logs each failure once with its code, the sanitized endpoint and the cause chain, without reqwest's top-level message, which carries the full URL. Callers judge only status codes and response format. DomainError wraps UpstreamFailure transparently, and the frontend uses one localized message for invoke errors and chat error messages. The Git HTTP bridge puts the failure below its io::Error payload: io::Error::source() skips the payload and gix wraps some I/O errors transparently, so an interrupted ls-refs body surfaced as an internal error. |
||
|---|---|---|
| .. | ||
| .cargo | ||
| crates | ||
| resources/tokenizers | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||