Files
schihei 26b493e7e5 feat(m1): Ollama client, catalog, streaming chat and CLI (T1.1-T1.6)
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.
2026-11-26 13:04:22 +01:00

14 lines
440 B
Swift

/// One chat message. v1 sends exactly one user message and never a system message.
public struct ChatMessage: Sendable, Equatable, Codable {
/// The role; always `user` in v1.
public let role: String
/// The message text (the documented prompt).
public let content: String
/// Creates a message.
public init(role: String = "user", content: String) {
self.role = role
self.content = content
}
}