(model string)
| 128 | } |
| 129 | |
| 130 | func canonicalModelKey(model string) string { |
| 131 | model = strings.TrimSpace(model) |
| 132 | if model == "" { |
| 133 | return "" |
| 134 | } |
| 135 | parsed := thinking.ParseSuffix(model) |
| 136 | modelName := strings.TrimSpace(parsed.ModelName) |
| 137 | if modelName == "" { |
| 138 | return model |
| 139 | } |
| 140 | return modelName |
| 141 | } |
| 142 | |
| 143 | func authWebsocketsEnabled(auth *Auth) bool { |
| 144 | if auth == nil { |
no test coverage detected