fix: route openclaw gateway routing hints
This commit is contained in:
parent
0197894698
commit
4540f8612f
@ -974,7 +974,13 @@ bool _usesOpenClawTaskSubmitEndpointInternal(GoTaskServiceRequest request) {
|
||||
if (request.isMultiAgentRequest || !request.target.isGateway) {
|
||||
return false;
|
||||
}
|
||||
return normalizeSingleAgentProviderId(request.provider.providerId) ==
|
||||
final providerId = normalizeSingleAgentProviderId(request.provider.providerId);
|
||||
if (providerId == kCanonicalGatewayProviderId) {
|
||||
return true;
|
||||
}
|
||||
return normalizeSingleAgentProviderId(
|
||||
request.effectiveRouting.preferredGatewayTarget,
|
||||
) ==
|
||||
kCanonicalGatewayProviderId;
|
||||
}
|
||||
|
||||
|
||||
@ -866,7 +866,7 @@ void main() {
|
||||
|
||||
expect(openClawStart?.path, '/gateway/openclaw');
|
||||
expect(openClawFollowUp?.path, '/gateway/openclaw');
|
||||
expect(unspecifiedGateway?.path, '');
|
||||
expect(unspecifiedGateway?.path, '/gateway/openclaw');
|
||||
expect(multiAgentGateway?.path, '');
|
||||
expect(agentTask?.path, '');
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user