MCPcopy Create free account
hub / github.com/github/gh-aw / piNativeProviderName

Function piNativeProviderName

pkg/workflow/pi_engine.go:106–115  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
106func 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

Callers 1

GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected