piNativeProviderName maps an AWF UniversalLLMBackend to the corresponding Pi CLI built-in provider name. Used when there is no AWF gateway to proxy through (firewall disabled) so Pi can call the provider's API directly.
(backend UniversalLLMBackend)
| 104 | // Pi CLI built-in provider name. Used when there is no AWF gateway to proxy |
| 105 | // through (firewall disabled) so Pi can call the provider's API directly. |
| 106 | func piNativeProviderName(backend UniversalLLMBackend) string { |
| 107 | switch backend { |
| 108 | case UniversalLLMBackendAnthropic: |
| 109 | return "anthropic" |
| 110 | case UniversalLLMBackendCodex: |
| 111 | return "openai" |
| 112 | default: |
| 113 | return "github-copilot" |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | // buildPiModelsJSON returns a minimal Pi models.json payload that registers a |
| 118 | // single custom provider named "aw-gateway" pointing at the AWF LLM gateway |