(model: string)
| 223 | } |
| 224 | |
| 225 | function getStreamProviderDisplayName(model: string): string { |
| 226 | const canonicalModel = normalizeToCanonical(model); |
| 227 | const providerSeparatorIndex = canonicalModel.indexOf(":"); |
| 228 | const provider = |
| 229 | providerSeparatorIndex > 0 ? canonicalModel.slice(0, providerSeparatorIndex) : undefined; |
| 230 | if (provider && isKnownProviderName(provider)) { |
| 231 | return PROVIDER_DEFINITIONS[provider].displayName; |
| 232 | } |
| 233 | |
| 234 | return "The model"; |
| 235 | } |
| 236 | |
| 237 | function isStreamTruncatedMessage(message: string): boolean { |
| 238 | const lowerMessage = message.toLowerCase(); |
no test coverage detected