ProviderKind returns the short name of a provider value. Used by /model and /provider to display the active backend.
(p provider.Provider)
| 319 | // ProviderKind returns the short name of a provider value. Used by /model |
| 320 | // and /provider to display the active backend. |
| 321 | func ProviderKind(p provider.Provider) string { |
| 322 | switch p.(type) { |
| 323 | case *provider.AnthropicProvider: |
| 324 | return "anthropic" |
| 325 | case *provider.OpenAIProvider: |
| 326 | return "openai" |
| 327 | default: |
| 328 | return "unknown" |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | // summarizeSession asks the active provider for a one-paragraph recap of |
| 333 | // the conversation plus 3–5 tags, used as the body of the session file |
no outgoing calls
no test coverage detected