Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
def normalise_mime_type(value: str) -> str:
"""The bare media type: no parameters, lowercased, whitespace trimmed.
Platforms report a type with parameters attached — Mattermost and Discord
hand back ``text/plain; charset=utf-8`` for a plain text file — and the
allowlist holds bare types, so the parameter has to come off before either
end compares them.
"""
return value.split(";", 1)[0].strip().lower()