Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

209 B
Raw Blame
package im

// ResolveMode returns channel.Mode, falling back to def when it is empty.
func ResolveMode(channel *IMChannel, def string) string {
	if channel.Mode == "" {
		return def
	}
	return channel.Mode
}