bridge: add gateway provider routing model
This commit is contained in:
parent
26db84561a
commit
5004ee2438
@ -14,8 +14,6 @@ const (
|
||||
productionGeminiEndpointURL = "https://acp-server.svc.plus/gemini/acp/rpc"
|
||||
)
|
||||
|
||||
var productionProviderOrder = []string{"codex", "opencode", "gemini"}
|
||||
|
||||
type syncedProvider struct {
|
||||
ProviderID string
|
||||
Label string
|
||||
|
||||
@ -246,11 +246,6 @@ func mapExplicitTarget(
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeGatewayTarget(value string) string {
|
||||
_, endpointTarget := resolveGatewayRouting("", value)
|
||||
return endpointTarget
|
||||
}
|
||||
|
||||
func resolveGatewayRouting(preferredGatewayProviderID, preferredGatewayTarget string) (string, string) {
|
||||
providerID := normalizeGatewayProvider(preferredGatewayProviderID)
|
||||
if providerID == "" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user