extractPiModelID returns the model ID portion of a provider/model string. For "copilot/claude-sonnet-4" it returns "claude-sonnet-4". For a bare model name (no slash) the whole string is returned unchanged.
(model string)
| 94 | // For "copilot/claude-sonnet-4" it returns "claude-sonnet-4". |
| 95 | // For a bare model name (no slash) the whole string is returned unchanged. |
| 96 | func extractPiModelID(model string) string { |
| 97 | if _, after, found := strings.Cut(model, "/"); found { |
| 98 | return after |
| 99 | } |
| 100 | return model |
| 101 | } |
| 102 | |
| 103 | // piNativeProviderName maps an AWF UniversalLLMBackend to the corresponding |
| 104 | // Pi CLI built-in provider name. Used when there is no AWF gateway to proxy |
no outgoing calls
no test coverage detected