Add endpoint policy and redirect-safe ephemeral HTTP client, error mapping, catalog cache and version checks, streaming chat with phase timeouts/cancellation, provisional Hy-MT3 prompt/language/request factory, warm-up policy, and sprachmittler-cli models/show/translate. Recapture the 7B fixtures; defer the 1.8B VERIFY items; document ADR-016. Also fix the signature checker's pipefail SIGPIPE issue.
14 lines
536 B
Swift
14 lines
536 B
Swift
/// Why an Ollama endpoint was rejected before any request was sent (SP-5, SP-6).
|
|
public enum EndpointRejection: Error, Sendable, Equatable {
|
|
/// The URL scheme is not `http` or `https`.
|
|
case scheme
|
|
/// The URL carries user info, a query or a fragment.
|
|
case form
|
|
/// A non-loopback endpoint was configured without the explicit remote toggle.
|
|
case remoteNotAllowed
|
|
/// A remote endpoint uses `http` instead of `https`.
|
|
case remoteRequiresHTTPS
|
|
/// A redirect response was refused.
|
|
case redirect
|
|
}
|